When the button is clicked the jqxForm is updated with the new template and then it is refreshed.
Before the button is clicked the form has labels First name and Last name. After the button is clicked, the new template is assigned and the labels are changed to Company and Address.
Unfortunately, I have to click the button twice to make it work. Is there a way to refresh to jqxForm with a single command so the user doesn’t have to click the button twice?
Please note, that the values in the fields do not change and remain to be the first and last name.