Hello Everyone,
I m using forms activity i used that for date select option if the i choose wrong date then it go back and re open the show form again.
Note at first run show form. Is working
Thanks
Hello Everyone,
I m using forms activity i used that for date select option if the i choose wrong date then it go back and re open the show form again.
Note at first run show form. Is working
Thanks
As per my understanding, you can use a do while loop & place the show form activity inside loop, then check if the selected date is valid. if the date is wrong, the loop runs again and the form opens for re-selection. the loop stops only when the correct date is chosen.
Happy Automation
Instead of show form try using create form again ..looks like the form instance is ended
Cheers
What you should do is a trigger for when the date is selected, do the validation, and if the date is OK then close the form. If it is not OK then prompt the user that the date is invalid and leave the form open for them to correct it.
I tried with new show forms instance but itâs showing same error. Once the option select then showing message box.
To be continued with these date if they donât want yo continue then after some delay show forms again.
Thanks
What version of UiPath Form Activities are you using? You shouldnât be closing the form when they set the date, you should have a trigger on the date field and in that trigger you validate the date. If the date is ok THEN close the form.
Activity - 24.10.0
First date selection option
After date selection
If the above date donât want then
First image should be come to date selection
But itâs showing error
Thank you
Can you try giving an instance name for it please in both show forms
Also are you using a close form after the first show form?
Cheers
![IMG20250607170213|375x500]
I used close form it wonât work
(upload://d4uX74tTphcoUavmI8pD6KpDtCy.jpeg)
Thanks
Are you trying to use REFramework for an attended automation using UiPath Forms? Thereâs your problem. REFramework does not at all accommodate how UiPath Forms work. This posts may help you understand how to work with Forms, Triggers, etc.
https://forum.uipath.com/t/how-to-create-a-select-file-or-select-folder-element-in-new-uipath-forms/
What you need to have is Main.xaml that shows the form, then for each action taken on the form (ie change field, click button etc) a trigger (which is a separate XAML) that does something based on that form action the user did. Here is what a UiPath Forms automation looks like.
Main.xaml:
Thatâs it. Thatâs the entire Main.xaml. It shows the initial form and then runs local triggers.
Here is an example of one of the triggers, Set All Notes:
Here is an example of one of the triggers that processes data entered into the form and then closes the form then shows a new form:
Here is what the one of the forms looks like:
Here is how the Select File button is configured with a trigger:
The key here is the Action being event instead of submit. This makes it so the form does not automatically close when the button is clicked. It just initiates the trigger associated with the button:
The easiest way to create a trigger on a button or field is to click the lightning bolt icon:
![]()
An important thing to understand is that ârun local triggersâ basically pauses Main.xaml at that activity, waiting for actions on the form that run the triggers. When an action (ie button click, field change, etc) that has a trigger associated with it happens, the trigger XAML runs, and then it goes back to just waiting for another trigger. At this point Main.xaml is continually paused at ârun local triggersâ until a âstop local triggersâ activity is encountered. Once a âstop local triggersâ is encountered then Main.xaml continues past the ârun local triggersâ activity.
So then in order to set up âstart over from the beginningâ logic - ie the user has completed all steps and we need to show the initial form againâŠI have a trigger on the âsubmit for upload buttonâ and that trigger looks like this:
After that is an If where I either show the initial form again, or if they clicked No I use Stop Local Triggers which makes Main.xaml continue from the ârun local triggersâ and since I donât have any activities after that, the automation just completes. You could, of course, have additional steps after the ârun local triggersâ in Main.xaml but keep in mind they wonât execute until the automation encounters a âstop local triggersâ activity which basically un-pauses it and lets Main.xaml continue.