I have created a multistep form in power pages with 2 steps both referring to the same dataverse table.
I am saving the data from 1st step while moving to the 2nd. And the 2nd step form is updating the existing record ie created from 1st step. I have a dropdown column in 1st step which I wanted to use to determine the label of the column (form field) in the 2nd step.
eg: Step 1 form -
Name:
Designation:
Step 2 form:
If the designation is 'Engineer' then the column name should be "Engineering College"
If the designation is 'Doctor' then the column name should be "Medical College"
I have tried implementing this by creating 2 forms in the dataverse table. I added a JavaScript function on the 2nd forms onload Event. And the function was working fine from the Model driven app. But it is not working from the power pages.
JavaScript function that I added to the dataverse form: