Important! A new Community experience launched on September 26, 2017. Read more about it here or continue to Base Camp.
Voting: 
Vote up!
0 Votes
3 Replies
Answered

How to set checkbox as checked state

Question asked by paramatma on Oct 25, 2010 06:53 EDT

Here is the command to set checkbox option(s) into checked state: [color=green]formname.checkboxID.selectedkeys[/color] = {"desired key-name"} [color=red]-- for single option[/color] [color=green]formname.checkboxID.selectedkeys[/color] = {"desired key-name1", "desired key-name2", "desired key-name3", ...} [color=red]-- for multiple options[/color]

Vote up!
0 votes
Vote down!

Thanks for the information.

Regards,
Kony Developer Forum Support team

Replied by: Mar 23, 2013 11:09 EDT
Vote up!
0 votes
Vote down!

I tried the solution suggested in postappinit for my app ( to keep my "remember me " option checked)

Unfortunately, it doesn't recognize this. Please let me know if there is an alternate.

Replied by: Jul 17, 2014 14:49 EDT
Vote up!
0 votes
Vote down!

Hello avenkateswaran,

Please place the code snippet in form life cycle events (pre/post show)rather than the app life cycle events.
In the app life cycle the form has not yet loaded into the memory.
Please let me know if you face any issues moving the snippet from postappinit to preshow.

Sorry for the inconvenience caused.

Thanks,
Arif
Product Support.

Replied by: Jul 18, 2014 01:52 EDT