The CreatorCon Call for Content is officially open! Get started here.

Set Field values in Flow Designer - Boolean

Gokul Nath
Kilo Sage

Hi,

I am need of setting a field value in flow designer which is of boolean type:

The field when unchecked in flow designer is also setting the value to True.
find_real_file.png

Tried with Scripting, but still the value seems to be set to True

 

find_real_file.png

 

find_real_file.png

 

Please let me know any suggestions to set the value. Thanks in advance

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

are you sure no other script is setting the value to true?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hello @Ankur Babatunde thanks for responding!

There is a before business Rule running to set the field value

find_real_file.png

which is setting the value to true. Could you Please let me know the order on which will set the value?

 

 

Hi,

Glad to confirm what I said above that some script is setting it from script and you found it.

it is setting true based on some field conditions.

Please ensure both the flow and BR conditions are in sync while setting or else you will face this issue i.e. Flow sets as false but script sets as true

Please discuss with your customer about this.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Yogesh14
Tera Contributor

Hi Gokul,

Write an onLoad script.

function onLoad() {
    //Type appropriate comment here, and begin script below
    g_form.setValue('needs_attention', false);
}

 

Regards

Yogesh