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?

After click:

Please note, that the values in the fields do not change and remain to be the first and last name.
Here is the link to the Stackblitz project:
https://stackblitz.com/edit/github-vrcxln-yepadt?file=src%2Fapp%2Fapp.component.html