This topic is locked

Select list

4/16/2016 11:49:47 AM
ASPRunnerPro General questions
G
georgeb author

I am in the process of re-writing an old Ihtml website in ASPRunner. the Inspection Order form contains a select dropdown that has "Grouped" insurance inspection types. each group has a "Header" that is not selectable from the list. wondering how i can accomplish this in asprunner?
the select code looks like this
<option value=""><B>PACKAGE REPORTS</B></option>

<option value="01 Pkg Fire &amp; Liability - Mercantile, Office, Mfg" label="">Fire &amp; Liability - Mercantile, Office, Mfg</option>

<option value="02 Pkg Fire &amp; Liability - Habitational" label="">Fire &amp; Liability - Habitational</option>

<option value="03 Pkg Fire &amp; Liability - Restaurant" label="">Fire &amp; Liability - Restaurant</option>

<option value="04 Pkg Fire &amp; Liability - Contractors" label="">Fire &amp; Liability - Contractors</option>

<option value="05 Pkg Fire &amp; Liability - Garage Liab. Dealers" label="">Fire &amp; Liability - Garage Liab. Dealers</option>

<option value="06 Pkg Fire &amp; Liability - Garage Liab. Non-Dealers" label="">Fire &amp; Liability - Garage Liab. Non-Dealers</option>

<option value="">PROPERTY</option>

<option value="10 Fire - Only" label="">Fire - Only</option>

<option value="10A Fire - All Risk" label="">Fire &amp; All Risk</option>

<option value="11 Builders Risk" label=""> Risk</option>

<option value="12 Inland Marine (Specify Type)" label="">Inland Marine (Specify Type)</option>
here's the original javascript

function zeroFirstCheck(obj) {

if (obj.value=='0' || obj.value=='') {

errMsg = '[BCCTurnkey Form Validation]\n\n This field is required, please select from items under the heading not the heading \n\n';

alert(errMsg);

document.InspectRqst.selAct1.focus();

return false;

} else {

return true;

}
}

admin 4/19/2016

You can use almost the same code. You can output this dropdown box code from code snippet for instance. Javascript code can be added to Javascript OnLoad event.