label with linked variable update on same screen.

Aaron Klamon shared this question 5 years ago
Answered

I have a modal window where the user updates their phone number in an input field (value is attached to a variable. The user then closes the modal and I have a label on the screen that is linked to that variable, however the new variable data is not updated on the label. If I manually refresh the page the label updates and shows the new variable value. How do I trigger that page refresh when closing the modal?

Comments (2)

photo
1

I suppose that you built the modal window in the same screen where you have the label to update .In that case you don't need to store the input value in the variable you can set the value directly into the label.

photo
1

Thanks that worked, I then assigned the label back to the variable on the page unload and it worked perfectly.