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

Clear variable value on an onLoad Client Script

rachelconstanti
Mega Sage

How do I clear a variable value using an onLoad Client Script?

 

The catalog item auto fills a variable (employee type) based on the requested for.   Requested for auto fills when the submitter opens the catalog item.

 

Using an onChange script, the employee type does not populate unless the requested for is changed.

Using an onLoad script, the employee type populates but if I change the 'requested for' the employee type does not change.

 

What can I do to get this to populate correctly?  

 

Thank you for any help you can offer...

1 ACCEPTED SOLUTION

Use the onchange client script and remove the isloading check on it.

-Anurag

View solution in original post

16 REPLIES 16

@Anurag Tripathi Need guideance.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Use the onchange client script and remove the isloading check on it.

-Anurag

Anurag -

 

THANK YOU...

This did the trick.

Cheers!!

-Anurag

I told you.. He is expert 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************