setValue is not working HTML variable in catalog item

Mahesh Kumar2
Tera Expert

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.

 

hyperLink.pngportal.png

8 REPLIES 8

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.


Please mark this response as correct and helpful if it assisted you with your question.

Connie Freeland
Tera Contributor

I am having the same issue...  did you ever find a resolution?

Karwan Ali
Tera Expert

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 ðŸ™‚

Noura
Tera Contributor

Hello Mahesh,
Have you figured out what the issue was? I am experiencing the same behavior.