How to set a different hint to each state at incident form?

Jansen Miotto
Giga Expert

Hey everyone, 

I need to show a different hint or title to every state at incident form. For example, if I select the state as new, I want a specific hint or title to appear, if I select closed another hint or title.

I tried to set different hints at the choices tab in the dictionary, however the hint only shows when the option menu is opened, if I select the state the hint will not appear anymore.

Could you guys help me?

Thank you all! 

1 ACCEPTED SOLUTION

Anil Lande
Kilo Patron

Hi,

As per OOB setup hint for choices will be shown when user open dropdown list.

If you want to show Help text or hint dynamically on change of state you can use below logic:

1. Create onChange client script on incident for which should run when State is changes.

2. In script use below logic:

if(newValue == 1){  // state is new
g_form.addDecoration('state', 'icon-view', 'Hint for new state');
}else if(newValue == 2){
g_form.addDecoration('state', 'icon-view', 'Hint for In progress state');
}

 

It will look like below:

find_real_file.png

 

Note: Please use state choices as per your configurations.

 

Thanks,

Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

2 REPLIES 2

Anil Lande
Kilo Patron

Hi,

As per OOB setup hint for choices will be shown when user open dropdown list.

If you want to show Help text or hint dynamically on change of state you can use below logic:

1. Create onChange client script on incident for which should run when State is changes.

2. In script use below logic:

if(newValue == 1){  // state is new
g_form.addDecoration('state', 'icon-view', 'Hint for new state');
}else if(newValue == 2){
g_form.addDecoration('state', 'icon-view', 'Hint for In progress state');
}

 

It will look like below:

find_real_file.png

 

Note: Please use state choices as per your configurations.

 

Thanks,

Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Hey I did it, thank you for helping me!