Multi-condition in HTA

Hi,

I am having so much fun, but I am just a newbie, at creating HTA

I am trying to create a HTA with 3 columns in which the first one gather input info and depending on the selection it will display on the second column the tickets to be created depending on the selected choices. Sample; if in the first column as input I enter the last name of the user to work with Smith and next I select the day this will start the project, next the department to work with, next the applications to be assigned to the project them, if non selected just create a ticket for Smith date department. But if some selected them create individual tickets with same user name Smith same date, but it will display the department to create each ticket.

February 18th, 2015 9:05pm

Sorry but we don't write custom scripts.  YOucan write a sccritp and post back with specific questions.

Free Windows Admin Tool Kit Click here and download it now
February 18th, 2015 9:43pm

<HTML xmlns:IE>
<HEAD>
<TITLE>User Profile Request v 2.5</TITLE>
<HTA:APPLICATION
  APPLICATIONNAME="UPR"
  ID="UPR"
 
</HEAD>


<BR>
<SCRIPT LANGUAGE="VBScript">

var strEmployee, strName, strdate;

Sub getAllinfo()
    CombinedName.Value = strEmployee & " " & strName & ", " &"Starting date: " & strdate
End Sub

</SCRIPT>

Name (required) <input type="text" id="txtName" value="" /><br />
    
<form name="UPRform">


       <b>Enter user Name:</b><br><input type=text name="UserName"><br>

<select name="OptionChooser" size="1">
<option value="Employee type One" selected>Employee type One</option>
<option value="Employee type One">Employee type Two</option>
<option value="Employee type One">Employee type Three</option>
<option value="Employee type One">Employee type Four</option>
<option value="Recolation">Recolation Request</option>
</select>
<BR>
<BR>

<input type="checkbox" name="building" id="building" OnMouseOut="AlertMsg()">Address one/ Address 2 /Address 3/ Address 4<br>
<input type="checkbox" name="device" id="device">Laptop / Computer<br>
<input type="checkbox" name="mailbox" id="mailbox">MailBox<br>
<input type="checkbox" name="voice" id="voice">Phone<br>
<input type="checkbox" name="sharedrive" id="sharedrive">Home Directory / Share drive<br>
<input type="checkbox" name="application" id="application" OnMouseOut="AlertMsg2()">Any Special Application<br>
<BR>
<button type="button" onclick="getAllinfo()">Submit</button>

</form>

</HTML>


--- Working on making it simple ---
February 19th, 2015 12:17pm

Sorry but I do not see or understand the question.

Free Windows Admin Tool Kit Click here and download it now
February 19th, 2015 12:25pm

That is what I have so far. I am thinking once clicked on "Submit" going with " If CheckBox1.Checked" and depending on which employee type then perform a subroutine that will create and place the results on the 2nd column; the title of the employee type, user name, starting date and departments in which to escalate these cases. Sorry all this still just an idea on my head !<smile>



February 19th, 2015 12:31pm

So, you are posting a bunch of lines of code and some vague ideas of what you are thinking about.

You need to focus on asking a specific question.

Generally we recommend on posting only a very short example of what doesn't work. Give respondents something specific to work with.

Free Windows Admin Tool Kit Click here and download it now
February 19th, 2015 1:04pm

<HTML xmlns:IE>
<HEAD>
<TITLE>User Profile Request v 2.5</TITLE>
<HTA:APPLICATION
  APPLICATIONNAME="UPR"
  ID="UPR"
 
</HEAD>


<BR>
<SCRIPT LANGUAGE="VBScript">

var strEmployee, strName, strdate;

Sub getAllinfo()
    CombinedName.Value = strEmployee & " " & strName & ", " &"Starting date: " & strdate
End Sub

</SCRIPT>

Name (required) <input type="text" id="txtName" value="" /><br />
    
<form name="UPRform">


       <b>Enter user Name:</b><br><input type=text name="UserName"><br>

<select name="OptionChooser" size="1">
<option value="Employee type One" selected>Employee type One</option>
<option value="Employee type One">Employee type Two</option>
<option value="Employee type One">Employee type Three</option>
<option value="Employee type One">Employee type Four</option>
<option value="Recolation">Recolation Request</option>
</select>
<BR>
<BR>

<input type="checkbox" name="building" id="building" OnMouseOut="AlertMsg()">Address one/ Address 2 /Address 3/ Address 4<br>
<input type="checkbox" name="device" id="device">Laptop / Computer<br>
<input type="checkbox" name="mailbox" id="mailbox">MailBox<br>
<input type="checkbox" name="voice" id="voice">Phone<br>
<input type="checkbox" name="sharedrive" id="sharedrive">Home Directory / Share drive<br>
<input type="checkbox" name="application" id="application" OnMouseOut="AlertMsg2()">Any Special Application<br>
<BR>
<button type="button" onclick="getAllinfo()">Submit</button>

</form>

</HTML>


--- Working on making it simple ---
  • Edited by JosephB777 Thursday, February 19, 2015 10:41 PM
February 19th, 2015 8:15pm

<HTML xmlns:IE>
<HEAD>
<TITLE>User Profile Request v 2.5</TITLE>
<HTA:APPLICATION
  APPLICATIONNAME="UPR"
  ID="UPR"
 
</HEAD>


<BR>
<SCRIPT LANGUAGE="VBScript">

var strEmployee, strName, strdate;

Sub getAllinfo()
    CombinedName.Value = strEmployee & " " & strName & ", " &"Starting date: " & strdate
End Sub

</SCRIPT>

Name (required) <input type="text" id="txtName" value="" /><br />
    
<form name="UPRform">


       <b>Enter user Name:</b><br><input type=text name="UserName"><br>

<select name="OptionChooser" size="1">
<option value="Employee type One" selected>Employee type One</option>
<option value="Employee type One">Employee type Two</option>
<option value="Employee type One">Employee type Three</option>
<option value="Employee type One">Employee type Four</option>
<option value="Recolation">Recolation Request</option>
</select>
<BR>
<BR>

<input type="checkbox" name="building" id="building" OnMouseOut="AlertMsg()">Address one/ Address 2 /Address 3/ Address 4<br>
<input type="checkbox" name="device" id="device">Laptop / Computer<br>
<input type="checkbox" name="mailbox" id="mailbox">MailBox<br>
<input type="checkbox" name="voice" id="voice">Phone<br>
<input type="checkbox" name="sharedrive" id="sharedrive">Home Directory / Share drive<br>
<input type="checkbox" name="application" id="application" OnMouseOut="AlertMsg2()">Any Special Application<br>
<BR>
<button type="button" onclick="getAllinfo()">Submit</button>

</form>

</HTML>


--- Working on making it simple ---
  • Edited by JosephB777 Thursday, February 19, 2015 10:41 PM
Free Windows Admin Tool Kit Click here and download it now
February 19th, 2015 8:15pm

<HTML xmlns:IE>
<HEAD>
<TITLE>User Profile Request v 2.5</TITLE>
<HTA:APPLICATION
  APPLICATIONNAME="UPR"
  ID="UPR"
 
</HEAD>


<BR>
<SCRIPT LANGUAGE="VBScript">

var strEmployee, strName, strdate;

Sub getAllinfo()
    CombinedName.Value = strEmployee & " " & strName & ", " &"Starting date: " & strdate
End Sub

</SCRIPT>

Name (required) <input type="text" id="txtName" value="" /><br />
    
<form name="UPRform">


       <b>Enter user Name:</b><br><input type=text name="UserName"><br>

<select name="OptionChooser" size="1">
<option value="Employee type One" selected>Employee type One</option>
<option value="Employee type One">Employee type Two</option>
<option value="Employee type One">Employee type Three</option>
<option value="Employee type One">Employee type Four</option>
<option value="Recolation">Recolation Request</option>
</select>
<BR>
<BR>

<input type="checkbox" name="building" id="building" OnMouseOut="AlertMsg()">Address one/ Address 2 /Address 3/ Address 4<br>
<input type="checkbox" name="device" id="device">Laptop / Computer<br>
<input type="checkbox" name="mailbox" id="mailbox">MailBox<br>
<input type="checkbox" name="voice" id="voice">Phone<br>
<input type="checkbox" name="sharedrive" id="sharedrive">Home Directory / Share drive<br>
<input type="checkbox" name="application" id="application" OnMouseOut="AlertMsg2()">Any Special Application<br>
<BR>
<button type="button" onclick="getAllinfo()">Submit</button>

</form>

</HTML>


--- Working on making it simple ---
  • Edited by JosephB777 Thursday, February 19, 2015 10:41 PM
February 19th, 2015 8:15pm

That is what I have so far. I am thinking once clicked on "Submit" going with " If CheckBox1.Checked" and depending on which employee type then perform a subroutine that will create and place the results on the 2nd column; the title of the employee type, user name, starting date and departments in which to escalate these cases. Sorry all this still just an idea on my head !<smile>



  • Edited by JosephB777 Thursday, February 19, 2015 6:01 PM
Free Windows Admin Tool Kit Click here and download it now
February 19th, 2015 8:29pm

That is what I have so far. I am thinking once clicked on "Submit" going with " If CheckBox1.Checked" and depending on which employee type then perform a subroutine that will create and place the results on the 2nd column; the title of the employee type, user name, starting date and departments in which to escalate these cases. Sorry all this still just an idea on my head !<smile>



  • Edited by JosephB777 Thursday, February 19, 2015 6:01 PM
February 19th, 2015 8:29pm

That is what I have so far. I am thinking once clicked on "Submit" going with " If CheckBox1.Checked" and depending on which employee type then perform a subroutine that will create and place the results on the 2nd column; the title of the employee type, user name, starting date and departments in which to escalate these cases. Sorry all this still just an idea on my head !<smile>



  • Edited by JosephB777 Thursday, February 19, 2015 6:01 PM
Free Windows Admin Tool Kit Click here and download it now
February 19th, 2015 8:29pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics