Need help with script to build a select box type variable on a custom Service Portal form

patricklatella
Mega Sage

Hi all,

I'm building a custom widget to present a custom form in Service Portal, and need to build a Select Box type variable...and I'm struggling with the script in the HTML field of the widget.  Here's where I'm at so far, I got this from Stackoverflow.com and am trying to manipulate for my need.  Anyone done this before?  Thanks!

<div class="select">
         <select [(ngModel)]="corporationObj" class="form-control col-lg-8" #corporation required>
             <option *ngFor="let corporation of corporations"></option>    
         </select>
         
     </div>
1 ACCEPTED SOLUTION

 <div class="form-group">
 <label for="technology">What technology is this related to?</label>
 <select id="technology" name="technology"
 ng-model="c.data.technology" class="form-control">
 <option value="">--None--</option>-->
 <option value="1">Help Desk</option>
 <option value="2">IT</option>
 <option value="3">Payroll</option>
 </select>
 </div>

View solution in original post

22 REPLIES 22

 <div class="form-group">
 <label for="technology">What technology is this related to?</label>
 <select id="technology" name="technology"
 ng-model="c.data.technology" class="form-control">
 <option value="">--None--</option>-->
 <option value="1">Help Desk</option>
 <option value="2">IT</option>
 <option value="3">Payroll</option>
 </select>
 </div>

I think I have given the same answer in the above thread.

 

yes you did, but the one above has the "required" in there, which isn't working...so just wanted to put the accurate script that's working.  thanks again!