Is the checkbox checked?


#1

I have a couple click activities - but I was trying to validate whether or not the box is checked or not before it clicks on it (for a modify process) - I have it in a select case statement so if a particular item A is checked in the request I want it to look and see if it is already checked (ignore) or unchecked (click on it) How/what do I use in my if condition to make that happen?

THANK YOU - in advance!


#2

I believe you can use ‘Get Attribute’ to determine if the checkbox is checked or unchecked.

Checked & Unchecked state of a checkbox can be identified through ‘checked’ property. Also Enabled & Disabled state of a checkbox can be identified through ‘aastate’ property.

Let me know if that’s what you are looking for.

Thanks,
Rammohan B.


#3

it does so I have the Get attribute in there now - What do I put where it says Attribute. Text must be quoted?
thanks!


#4

Add the attribute name as below,
image

Thanks,
Rammohan B.


#5

I am getting validation errors :frowning:


#6

What the error thrown? Basically the output of the “checked” attribute is 0 or 1. 0 if unchecked and 1 if checked. Use it accordingly under if condition. Its not a boolean output.

Thanks,
Rammohan B.