Rocky
(Trainer Uipath)
May 26, 2022, 3:17pm
1
I have uipath form with 3 fields…
Name
Address.
Phone Number
i use a url, www.fakenamegenerator.com/ where it has all data for the above fields…
how to have a button in the form and while clicking it, all the respective fields in the url should be scraped and to be populated in form fields?
postwick
(Paul Ostwick)
May 26, 2022, 3:18pm
2
You scrape the data before the Form activity, then pass the data into the Form.
Rocky
(Trainer Uipath)
May 26, 2022, 3:41pm
3
when i use get text and pass as variables…then run form is having fields… but how should i use a button and when i click it should populate data
postwick
(Paul Ostwick)
May 26, 2022, 5:23pm
4
Then you have to set the button not to close the window when submitted, and put your “populate data” activities into the Create Form activity’s Do sequence. As long as your variables are set to in/out when the Do sequence changes the variables they’ll change in the Form.
Rocky
(Trainer Uipath)
May 26, 2022, 5:42pm
5
i tried it but no luck. if i have get text activities in do section of form…no data is getting populated
postwick
(Paul Ostwick)
May 26, 2022, 5:47pm
6
You have to create arguments for your form as in/out arguments. Your activities need to populate those arguments.
postwick
(Paul Ostwick)
May 26, 2022, 5:57pm
7
Create your form and add an in/out argument:
The variable doesn’t have to be named the same as the argument, by the way. Just my personal habit.
Add a key to the Submit button so it doesn’t close the form:
Add activities inside the Do block that change the value of the variable:
Now when I run my automation it presents the form with no value (because textVal doesn’t have a value yet):
And when I click the button the Do block executes which changes the value of textVal:
Rocky
(Trainer Uipath)
May 26, 2022, 6:59pm
8
Thanks. i found the solution. same way is it possible to read each row of excel in a uipath form?