- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2023 10:59 PM
I have set the catalog item "AWS Managed Configuration Information" in the Options of the OrderGuide.
This catalog item has the onLoad catalog client script A set.
However, when I go back to the "Choose Option" screen by clicking the "Edit Options" button in the "Summary" of the OrderGuide shown in the screenshot, I do not want to move the catalog client script A.
Is it possible to implement this requirement?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2023 07:55 AM
Hello Miy,
I saw this question of yours and tried to find various ways to do it in my PDI but the only two way that I could short list on was:
1. You create a count type variable on your form and always give it a value and then use it as a check in your Catalog Client script.(My Recommendation)
2. This solution(may not be a possible solution is slightly far fetched) but I was thinking if you wanna run your Catalog Client Script only when you enter into the process from the initial stage and don't want to use it if you are being redirected from that button, so if you can use previous URL from where you are initially directed to your Choose Options and compare it in your if condition so your Catalog Client Script will run on basis of from where you have been redirected.
However, getting previous URL from history is not easy. I have tried a few methods but they end up directing me to previous page. So, if you know of any way to get previous URL then you can give this a try.
I hope this answer helps you. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2023 05:50 AM
One way to do this is to first check the value of a mandatory variable in the onLoad script. If it doesn't have a value, run the rest of the script, otherwise you know it's not the first time the form was loaded, so you can do nothing / no 'else' needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2023 07:55 AM
Hello Miy,
I saw this question of yours and tried to find various ways to do it in my PDI but the only two way that I could short list on was:
1. You create a count type variable on your form and always give it a value and then use it as a check in your Catalog Client script.(My Recommendation)
2. This solution(may not be a possible solution is slightly far fetched) but I was thinking if you wanna run your Catalog Client Script only when you enter into the process from the initial stage and don't want to use it if you are being redirected from that button, so if you can use previous URL from where you are initially directed to your Choose Options and compare it in your if condition so your Catalog Client Script will run on basis of from where you have been redirected.
However, getting previous URL from history is not easy. I have tried a few methods but they end up directing me to previous page. So, if you know of any way to get previous URL then you can give this a try.
I hope this answer helps you. Thank you.