Hi,
I am trying to make the tool-tip text configurable, so the user can change the tool-tip text as and when they want to without having to make changes at the back-end. I have implemented a solution, but wanted the experts in this forum to vet this and let me know if there is a more elegant way of doing this.
Step 1 - I created a table called Portal Tooltip Help, and created fields 'Key', 'Value', Key is a unique identifier (pagename/fieldname) and 'Value' is the tool-tip text.
Step 2 - Expose the above table via WebApi
Step 3 - On the webform step javascript, iterate through all the fields on the form and fetch tool-tip text from the above table. If tool-tip text is found, push it to the field.
See attached screenshot of the code.
My question is - have I over-engineered the solution, or is there a simpler way of doing this? Can this be done using content snippets as well ?