- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 01:05 AM
Happy Christmas ServiceNow Community 🙂
Can anyone point out where I am going wrong with this catalog client script:-
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 02:29 AM - edited 12-28-2023 02:31 AM
Hi @jonathangilbert, I have got it working with slight modification as highlighted below.
Regards,
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 01:12 AM
Hi @jonathangilbert ,
Can u trying putting an alert for all these variables n check if the values are coming properly or not
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 01:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 01:43 AM
Lets put an alert for newValue before the if condition in ur script & lets see if the alert comes two times or NOT.
Once when u select some value n other when u make it empty.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 01:16 AM
Hi @jonathangilbert, Your script looks, just make sure the two variables 'amount_in_document_currency' and 'vat_tax' are present on the form and are not null. I have optimized your script to below.