Using SlideShow with Input fields -

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

Hi, @user5588 !!

I’m not sure if I fully understand the situation correctly :thinking:, but it seems to me that things would be resolved simply if it could be like this. :innocent:

$w("#myDataset")
  .save()
  .then((item) => {
    $w(“#radioGroup2”).selectedIndex = undefined;
  })
  .catch((err) => {
    let errMsg = err;
  });

Alternatively, this might work as well. :upside_down_face: