Change tags or resource path in Sling model based on dropdown or any page UI elements?
Hi All,
I am having a requirement where I need to change the tags or resource path that's in Sling Model depending on the option selected by user on page.
There's already one default tag or resource path in my Sling Model with logic on it & used on page to display. Now, I want to change this by giving the options to the user which can be dropdown or radio buttons with some values for tag or resource path. Depending on the selected option, tags or path should change, run logic in Sling Model & use it on page.
So, could you please suggest me how to change something in Sling Model through the page?
Edit:
Actually, in component dialog the tag or CF path is given & used on page via Sling Model. You can say its default. Now I want the ability such that whichever option/dropdown, outside of dialog but will be in components HTML, is selected the path for tag/CF associated to the option's value should be used instead of default.
Indirectly, can we change component's dialog values?
Thanks in advance,
sesmic