Get checkbox status from Form activity

Hi everyone!

I need help …

How to check the state of checkbox !! I used it in login ( with Creat Form activity) … the checkbox name is Save password !! If it’s checked save it …

The key field for checkbox is SavePass

The if statement is >> SavePass.Checked = True

Also, I tried to use SavePass.CheckState = 1

The problem is always the condition is false whether i checked it or not …

That’s what I’ve got in debug mode > [System.Windows.Forms.CheckBox, CheckState: 0]

Please any suggestions !!! :slightly_frowning_face:

this is a sample of what I mean…



02

Hi Rawan,

Change the datatype of SavePass argument to Boolean in FormFieldsCollection and similarly SavePass variable to Boolean. If it returns True then the Checkbox was checked, else it was not checked.

Regards
Abhishek

Yes, I’ve already solved it …

thanks ^^

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.