Dropdown options required in portal

thaduri sai
Tera Contributor

Hi Team,

 

We have added popup free text field message in portal - and now we need dropdown field with 3 options instead of free text field.

 

thadurisai_0-1706869111320.png

 

How to acheive it ?

 

Thanks,

Sai

 

3 REPLIES 3

AnveshKumar M
Tera Sage
Tera Sage

Hi @thaduri sai 

 

You can try the following script.

 

<g:ui_choice_input_field id="choice_list_id" name="choice_list_name" label="Select Option">
      <option value="">--None--'</option>
      <option value="1">Option 1</option> 
      <option value="2">Option 2</option>
      <option value="3">Option 3</option> 
</g:ui_choice_input_field>

 

Please mark my answer helpful and accept as a solution if it helped 👍✔️

Thanks,
Anvesh

@AnveshKumar M , Thanks for your help.

 

We are return this below CSS in widget - Can you please modify this below script. 

 

$scope.escalateIncident = function() {
        spModal.open({
            title: 'Please confirm if you want to reopen this incident.',
            message: 'Please enter reason for re-opening this incident:',
            input: true,
             buttons: [
                {label:'✘ ${No}', cancel: true},
                {label:'✔ ${Yes}', primary: true}
            ]
        }).then(function(name) {
        $scope.data.escalateIncident = name;
        $scope.data.action = 'escalateIncident';
        $scope.server.update(init).then(function(response){
                    if (response.isIncidentResolved)
                        spAriaUtil.sendLiveMessage(c.reopenedIncidentMsg);
                });

Community Alums
Not applicable

Hi,

 

Did you find a way to create dropdown field if so can you please share me the script