how to show choice with different name based on condition.

omsa1
Kilo Guru

Hi All,

I need help to rename the choices just for normal change, i have a field with Yes or No choices. if the ticket is normal change then i need to show yes choice as Yes - automatically. How can i do this?

 

 

1 ACCEPTED SOLUTION

omsa1
Kilo Guru

Hi asifnoor,

Thanks for the suggestions. Here is my script and its working as expected.  

if (Type == 'normal'){
g_form.clearOptions('u_alerts');
g_form.addOption('u_alerts','Yes','Yes - Automatically');

View solution in original post

8 REPLIES 8

Hi Harish,

This is what i'm trying to achieve. 

when users view the choices for alert , if the type is normal , the choice yes should show as Yes-automatically instead of just Yes . How can i do this?

i want the choice to show as Yes - automatically when user click the drop down. 

Hi Omsa,

you can use the scripts provided above but make this change.

As I understand, for other change request types, you want the options to be visible always so that the user can select.

so in the else part, instead of setting no, just say

g_form.clearValue("u_alerts"); //This will reset the dropdown of alerts and allows user to select the value.

Mark the comment as a correct answer and helpful if it helps.

omsa1
Kilo Guru

Hi asifnoor,

Thanks for the suggestions. Here is my script and its working as expected.  

if (Type == 'normal'){
g_form.clearOptions('u_alerts');
g_form.addOption('u_alerts','Yes','Yes - Automatically');

Glad it helped 🙂