Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

setValue not working with Radio Button Choice field.

Christine30
Tera Guru

Hi:

 

I am am able to change the value of a Radio Button Choice field using gr.setValue in a script include, and then use gr.update to update the record. However, the change does not appear on the form (table form) until I "manually" refresh the form.

 
I'd appreciate any advice on how to correct this so that when the record is updated the change is visible on the form.  Thank you.
 
Christine
1 REPLY 1

Brad Bowman
Kilo Patron
Kilo Patron

Hi Christine,

To see the field update on the form without refreshing, you'll want to end up doing a g_form.setValue('field_name') triggered in an onLoad or onChange Client Script, or UI Action - whatever you are using to trigger the update now.  In this way the record doesn't get updated until the user saves/submits/updates the form.  What triggers your Script Include now, and why are you updating the currently-displayed record within that?