How to Get Unique ID of Component HTML.
I need to add same component multiple times 2-3 time on a page and this comp has config field as portal_id.
Reading on comp html.
<INPUT TYPE=hidden id="portalid" name="portalid" VALUE="${properties.portalid}"/>
So for a page if component added 2 times then this line is set 2 times in html. I have two different value.
<INPUT TYPE=hidden id="portalid" name="portalid" VALUE="1001"/>
<INPUT TYPE=hidden id="portalid" name="portalid" VALUE="1002"/>
But I want to append some unique value to each portal id variable to filter out the variable value with comp id wise in component js file.
Any suggestion would help.