Service Portal Widget's dropdown

Dhruv Chandan
Giga Guru

Hi All,

I'm trying to create a drop-down field with some options in the Service Portal Widget, drop-down is created but i'm not sure as how can i add options to ti.

HTML script:-

<select type="text" id="mySelect" class="dropdown" ng-model="c.data.personalDetail.LevelOfAccess" required><select/>

i want the drop down to look like below, with the default option as   none:-

find_real_file.png

Any help is appreciated on the scrip to add options to the above drop down.

Regards,

Dhruv Chandan

1 ACCEPTED SOLUTION

Justin Abbott
Giga Guru

<select type="text" id="mySelect" class="dropdown" ng-model="c.data.personalDetail.LevelOfAccess" required>


  <option value="none" selected>None</option>


  <option value="admin">Admin</option>


  <option value="user">User</option>


</select>


View solution in original post

14 REPLIES 14

How can we get the Drop down value from the fields in portal widget, i need to concatenate two drop down field values and populate on to the short description field.


Did you get answer to this ?? Please let me know

Hi Chinmayee,

 

I've already marked the answer as correct, Please check the thread.

 

Thanks,
Dhruv

<select class="form-control" ng-model="c.data.user" id="req">
<option ng-repeat="fetchUser in data.users" value="fetchUser.sysid">{{fetchUser.name}}</option>
</select>

 

I am using this code to get the values in the requester field but I am not able to fetch its value I am getting the output as undefined by using 

alert("requester="+c.data.user.value);

how can I change to multi select like 

find_real_file.png