How to retrieve form variable value via script in flow designer

Shivam32
Tera Contributor

I have a requirement to set the dropdown field value on the case based on the variable value select on the form via flow designer
Variable on the form is of multiplechoice type:


eg: if user selects 1st option from the form the  field value on the case will be set as allowed. Office type field is a choice type field. If the user selects 2nd option then office type field value will be set as review pending.

 

1 ACCEPTED SOLUTION

@Shivam32 

you can use inline f(x) script and use if else and determine the value

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

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

View solution in original post

10 REPLIES 10

@Ankur Bawiskar Hi Ankur, I am not sure how to start. So we are creating a record when the record producer is submitted and for the accomodation type we have multiple options and based on the user selection on the form the accomodation type should be set. I cannot directly set any 1 value while creating record.

 

@Shivam32 

you can use inline f(x) script and use if else and determine the value

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

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

@Ankur Bawiskar Could you please provide some sample script I can refer to access form variable

@Shivam32 

 

Check this for inline scripting in flow designer.

How To Script In Flow Designer | Snowycode

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

@Shivam32 

unless you start you won't learn

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

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