setValue is not working HTML variable in catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2024 10:40 PM
I have created a HTML variable in a catalog item. I am setting hyperlinks data to variable through client script based on a dropdown value change. It used to work as expected. When i change a value in dropdown, it shows the hyperlink in that HTML variable as in second screenshot. But suddenly it's stopped working may be from past few days. I am not sure any functionality deprecated wrt HTML variable. Attaching the code as below. Please help me on resolving this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2024 03:21 AM
Hi Mahesh
I tried simulating this scenario on my PDI and it is working as expected for me. Have you checked if the variable 'link' value is link only ?
Also, can you try commenting the lines containing setVisible. It might be possible that the field itself is not being visible though the value is getting set.
Amit Verma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2024 02:20 PM
I am having the same issue... did you ever find a resolution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2024 05:19 AM
Hello,
I managed to solve this by creating the HTML variable with Read only = false, populate the variable with the content and then making the variable Read only by Client Script.
I hope this helps someone in the future 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2025 02:02 PM
Hello Mahesh,
Have you figured out what the issue was? I am experiencing the same behavior.
