Page 1 of 1

Is there any way to use a variable in the 'Code' field of the 'Web Element'?

Posted: Wed Nov 29, 2023 11:37 pm
by pharah.long
Hello, fellas
How can I use a variable in the 'Code' field of the 'Web Element' ? See the image link below.

Re: Is there any way to use a variable in the 'Code' field of the 'Web Element'?

Posted: Thu Nov 30, 2023 3:51 pm
by pharah.long
Hello, fellas
I have solved it myself. My solution is to set an ID for the iframe and use JavaScript in the Skin Editor to set the 'src' for it.

Re: Is there any way to use a variable in the 'Code' field of the 'Web Element'?

Posted: Thu Nov 30, 2023 5:53 pm
by Hopki
Hi,
Would you mind sharing your method?
But here is a project that swaps out the web elements iframe.
Regards,

Re: Is there any way to use a variable in the 'Code' field of the 'Web Element'?

Posted: Fri Dec 01, 2023 4:18 pm
by pharah.long
I just did a simple thing, as shown in the image below. :lol: