FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
10-13-2021 06:46 PM
How can a variable be inserted into a webIQ action, iFrame, etc.
For example, I would like to have an iFrame that updates based on a changing url. Is there a way to assign a string variable to the Source URL?
Solved! Go to Solution.
10-18-2021 08:32 AM
Hello,
this is not possible directly because WebIQ uses a subscription model for all items thus you cannot use any arbitrary item name without subscribing it for a specific widget and unsubscribing it when the widget is no longer active or has been removed.
You can however create a LocalScript and change the iframe source URL whenever an item changes by subscribing to that item in the LocalScript.
Regards,
Sascha Kimmel
10-20-2021 10:19 AM - edited 11-07-2022 11:32 AM
Here is an example how to update the URL of a ifram via JS.