- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 07:55 AM
I think you need to keep the code for the "Pin/Unpin" script in the actions for when you click on card...that way the "Next Button" client script has the parameters you're looking for (this is why it is sometimes the same parameters as a previous template -- they're present, but not getting passed by the Pin/Unpin as you desire).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 10:34 AM
I am using the same client script that was used on OOTB 'Next' Button Event in the Event Handler
OOTB Next Button Click:
Card Selection Event click :
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
5x ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 10:42 AM - edited 06-16-2023 10:44 AM
Yes, but you need the other one too (you need 3 events handlers for this, on the card selection click)
which is on the pin/update card:
keep that action (execute client script pin unpin card) at the top of the "events" you copied from the next button.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2023 11:47 PM - edited 06-19-2023 12:23 AM
Hi @jMarshal
I tried and It's always taking the default change model on any card click.
Also added Card Click client script so that the values for
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
5x ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2023 10:42 AM
Sorry - I am also quite new to UI Builder.
After further investigation - you definitely do not want the "Pin Unpin" there -- I believe that is specifically for the "Pinning" of change tiles, in the repeater container.
...and I went so far as to edit the "Card Click" action to include the client scripts of "close tab" and "next button" embedded in that action's client script...and it has the same symptoms as you describe, so I am at a loss.
Sorry, I wish I could be of more help - you definitely need to combine the scripts of all of the actions...but clearly more is needed, rather than just copying the variant and modifying the click action on the card to do "all the things" (that are done oob, with the next button).