Hi,
I am new to HTL and wondered if you are able to manipulate the data that is returned from a dialog?
Basically I am doing:
<div data-sly-test.leftURLExists="${properties.leftURL}">
<sly data-sly-set.leftURLValue="${properties.leftURL}"></sly>
</div>
I need to check the value inside 'leftURLValue' to see what it starts with. If it starts, https:// I need to do something, however, if it starts /content/ I need to do something else with it.
Can this be done in HTL?
If not, can I pass this 'value' to a .js file from inside HTL? I can then manipulate the data in the .js file to check for https:// or /content/, then return the results to the HTL file to print out the result on my page. If this is the case please can someone help with this?
Thanks Lisa.