I have a scenario where I am using a slideshow to simulate a wizard through which the user inputs data. Each slide represents a different section of data. The user clicks “next” through the various slides then on the last slide clicks submit. At this point all of the datasets are validated and saved. Once saved, I want to clear the input fields to not show any data but I am not sure how to do that?
I am using this event -
$w(‘#submit’).onClick(() in which I am using $w(‘#dataset1’).setFieldValue to set Value of my fields and then using $w(“#radioGroup2”).selectedIndex = undefined; to clear form. But with this it keeps on erroring saying validation failed as my guess is - it clears up those fields before submitting and then erroring because there is no value for mandatory fields found. Can someone help please