How to Clear the Field Value using UI Action??

Cherith
Kilo Expert

Hi All,

We have button(Reschedule Change) -- When we click on " Reschedule change" button -- There is a Mandatory field to fill " Reschedule a reasons (dropdown field with the choices) ".

Requirement :   If a change is rescheduled multiple times, Is to possible to clear the " Reschedule a reason" field every time and copy the reason to additional comments

find_real_file.png

 

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi,

Open the UI Action for "Reschedule Change"

Check Client checkbox

You should have Onclick populated with a function name.

In the Script 

add following two lines

g_form.setValue('comments', g_form.get_value('field name of Reschedule Reasons list');

g_form.setValue('field name of Reschedule Reasons list', '')

If Reschedule Reasons is becoming mandatory through some other process then user will have to populate it before they can save the record

Hope this helps

View solution in original post

1 REPLY 1

Community Alums
Not applicable

Hi,

Open the UI Action for "Reschedule Change"

Check Client checkbox

You should have Onclick populated with a function name.

In the Script 

add following two lines

g_form.setValue('comments', g_form.get_value('field name of Reschedule Reasons list');

g_form.setValue('field name of Reschedule Reasons list', '')

If Reschedule Reasons is becoming mandatory through some other process then user will have to populate it before they can save the record

Hope this helps