I have a form that includes elements like dropdowns and input fields. When I navigate back and forth in the journey and return to the page with the form, I want all previously selected data to be cleared, ensuring that all fields are reset and remain empty.
You can use delete data task to achieve this. You can use any event like onPageCreate or onBackPress. Create a task group, drag the delete data task, and pass the elements that you want to clear in the select data section. As you can see in the given images. Also, use the reload element task.
Like I have filled in input fields and selected from dropdowns.
I have used the task onClick event of the cross icon.
Now when the user comes back to the page, it will get clear.
2 Likes
Thanks for the answer! @Neeraj_Kumar