Client Script - onBeforeUpdate, how to get the new value of picklist
Basically, I have "Contact Type" field, and if a particular type is selected from within Canvas detail page, I want it to show a popup warning. I have all of this working, except that getvalue on the particular field in question shows the currently saved value, not the new value selected by the user.
Here is the section that queries the field:
const field = ZDK.Page.getField("Contact_Type");
const newValue = field.getValue(); // Get the field value being set by the user
I am logging to console the output of this, and it shows that the value it's getting is not the one I'm selecting and trying to save, but the value that I am changing from
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.