Select all checkbox UiPath.Forms.Activities

I am creating a form using selectboxes using UiPath.Forms.Activities, and I need to have a checkbox called selectAll that will check all of the selectBoxes which are populated by a list of strings, but I cant figure out how to do this. I have tried conditionals:

“conditional”: {
“calculateValue”: “value = true”,
“when”: “data.selectAll”
“eq”: “true”
},

and…
“conditional”: {
“calculateValue”: “value = true”,
“when”: “data.selectAll”
“eq”: true
},

and advanced logic…
“logic”: [
{
“name”: “if true”,
“trigger”: {
“type”: “simple”,
“simple”: {
“value”: true,
“when”: “selectAll”,
“eq”: “true”
}
},
“actions”: [
{
“name”: “then true”,
“type”: “value”,
“value”: “true”
}
]
}
],

but I can’t get it. Does there need to be a javascript onChage function or something to check the state of the selectAll checkbox? If the selectAll checkbox is successfully able to use the conditionals on the display property, shouldn’t it be possible to assign the truth value to the selectBoxes in the same way? This doesn’t work though. I’ve noticed that lots of other people have asked this question, and gotten no solution. Please help

Hello @Stephanie_Rimel!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff

The select all button will be an external button or inside drop-down?

Hi @Stephanie_Rimel ans @Nithinkrishna ,

I have been trying to find a solution on this, but as of now I don’t see any possible workarounds.

The Form Designer documentation is definitely poorly written and does not provide much help in understanding the syntax to be used for Json triggers or to modify json component via JavaScript.

I have also gone through numerous threads in the forum all of them are dead ends. I am sure that such a basic function definitely exists ( choose one select box and rest of the unselected once are selected) but sadly the documentation does not help us much.

  1. There is an excellent starter tutorial on using form designer by @rahulsharma

Orphan thread
2. How do I make a "Select All" checkbox with Forms?

Not exactly what you are looking for
3. UiPath Form with Checkboxes to be filled with multiple values - #2 by andrey.egorov
4. How to use select boxes? - #8 by AshwinS2

Nonetheless, this was an excellent question. I got to learn a lot about how UiPath.Form activities work. Thank you for that.

1 Like

I did find a workaround, it worked well enough for my purposes anyway. In the data tab of my selectboxes, I set a shortcut key that is the same for every checkbox, so I can just use ctrl+B to select all the checkboxes,

and then I created a reset all button which allows the user to deselect the checkboxes.

Not exactly what I was looking for but a suitable workaround. I hope this helps someone.

SelectAllWorkAround

Hi @Stephanie_Rimel,

That’s great!
Could it be possible for you to share some screenshots of your workaround? I am sure many people will benefit from it.

Screenshots of your triggers and how you use the two buttons as the workaround.

Hi @Stephanie_Rimel / @jeevith ,

This can be implemented using advanced logic. Please find the attached project containing a working example.
Sample Project.zip (14.1 KB)

I have also created a tutorial for this feature

Thanks,
Praga

2 Likes

This is amazing! Thank you so much for taking the time show us how to solve this, it is greatly appreciated <3

Hi I uploaded some documentation of my workaround but Pragadeeswaran definitely has the best solution. Thanks guys!