- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-15-2021 02:54 AM
Hi All,
Hope everyone is doing good.
I am working on a catalog form with Variables,
Name (reference to User table), Department, Work Location, Telephone, Email. When value changes in Name variable, all the other variables get populated automatically if the user in Name variable has that values exist. If not, we are allowing users to manually enter values in Department, work location, telephone, email variables.
We have a MRVS with the same variables as mentioned above.
Now, We have a checkbox variable on the same form with name "Self". When user checks it to true, all the values in the Name, Department, work location, telephone, email should be copied to variables in MRVS. If he unchecks, the values should get cleared (only the row should get deleted which is populated when the variable is checked). This should work on change of both Name and Self variables.
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-21-2021 06:17 AM
Done and working fine in native
please check below output
Please mark my response as correct and close the question.
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-19-2021 04:37 AM
Hi
Updated like above, parser is showing [object Object] again. And all the values in MRVS are getting deleted.
Also tried by changing to var parser = JSON.parse(JSON.stringify(details1));
This time the parser is showing values, but the rows are not getting deleted.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-19-2021 05:01 AM
Sorry but it becomes really difficult to understand as we don't have access to the instance.
Can you replicate this in your PDI and share what exactly is requirement
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-19-2021 08:43 AM
Sure
I will replicate and update you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-19-2021 09:12 AM
Hi
I have replicated the catalog form in PDI. And I haven't written any scripts to make it clear for you to understand from scratch.
Requirement is:
I have 2 variables, Requestor (reference), self (checkbox) and MRVS (with variables, Attendee name, Email Address, Department, Title) on the catalog form.
When user clicks on Self to true, the details of User in requestor field (like name, email address , department and title) should get populated in respective variables of MRVS. And users also have privilege to enter values manually into MRVS by clicking on ADD button of MRVS.
So, when user set Self check box to false, the values that were auto populated in MRVS should only get deleted. Manually entered values only should present.
I will send my credentials to you in Mail, could you please drop mail to rkreddygudise@gmail.com
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-19-2021 09:21 AM
Please drop me the details
will take a look tomorrow
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader