Amit Gujarathi
Giga Sage
Options
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 10-10-2023 11:39 PM
Hi All,
I hope you are doing fine.
- We all have worked on the client-side validations in our project.
- We use client scripts that are of type onSubmit, onChange, onLoad, and onCellEdit.While working on the client-side scripting often we have a few boolean fields on the form and we want to execute some validation based on the boolean value.
- To extract the value of any fields the function we use is getValue() but do you know while working with the boolean fields (checkbox) this function doesn't work as expected?
- When we use the getValue('Boolean field name') we expect the outcome as a boolean, but it returns the string value instead of a boolean. Isn't it surprising?
In this video, we will get familiar with resolving this conflict. In this tutorial, we will be looking into the function "getBooleanValue".
- What is the getBooeanValue function?
- getBooleanValue function is the client-side function that
- can be used to extract the boolean value of the boolean fields on the form.
If you like this video please subscribe to my channel Technomonk for more such videos in the future.
Regards,
Amit Gujarathi
(Technomonk)
Technomonk Youtube: https://www.youtube.com/c/TechnoMonkAmit
Amit Gujarathi Linkedin: https://www.linkedin.com/in/amit-gujarathi-98632a175
TheTechnomonk.com : https://thetechnomonk.com/
ServiceNow Community Amit Gujarathi: https://www.servicenow.com/community/user/viewprofilepage/user-id/265565
GitHub: https://github.com/amigujarathi
Labels:
- 1,096 Views