Page 1 of 2

Get Checkbox value and store Login Details in Variables

Posted: Fri Feb 20, 2015 3:53 pm
by Mark Wong

If Checkbox for Remember Password (Only One) checked, When calling Login Service, it will store the username and password in variables Image


Get Checkbox value and store Login Details in Variables

Posted: Fri Feb 20, 2015 3:54 pm
by Mark Wong

Please give me step by step procedures or JS code to meet this target!
Thank you


Get Checkbox value and store Login Details in Variables

Posted: Fri Feb 20, 2015 4:18 pm
by Maryna Brodina

Hello!

I am sorry, but custom app logic and custom JS are outside the scope of our support http://devcenter.appery.io/support-po...

Please clarify what have you tried and what exactly doesn't work so we can help.


Get Checkbox value and store Login Details in Variables

Posted: Fri Feb 20, 2015 4:21 pm
by Mark Wong

I need when Sign In button clicked, then it will check the Remember Password Checkbox Value, if its checked, then it will remember the password and account by storing in the variables.
But unfortunately, Im not sure about how to check the value of Checkbox.


Get Checkbox value and store Login Details in Variables

Posted: Fri Feb 20, 2015 5:10 pm
by Maryna Brodina

Get Checkbox value and store Login Details in Variables

Posted: Sat Feb 21, 2015 6:49 am
by Mark Wong

Any other examples?
Sorry, still don't get it


Get Checkbox value and store Login Details in Variables

Posted: Mon Feb 23, 2015 3:32 pm
by Evgene Karachevtsev

Hello Mark,

Could you please detail what do you have now and what exactly doesn't work?


Get Checkbox value and store Login Details in Variables

Posted: Mon Feb 23, 2015 4:04 pm
by Mark Wong

Sorry I mean I don't know what is the code for checking the value of Checkbox and when the button clicked, do this action when Checkbox is checked


Get Checkbox value and store Login Details in Variables

Posted: Mon Feb 23, 2015 8:34 pm
by Evgene Karachevtsev

Mark,

1.The code for checking the value of Checkbox you can find here http://devcenter.appery.io/documentat...

  1. You can add 'Run JavaScript' for 'Click' event of button where you could check value of checkbox, and do any action what you want if checkbox is checked

Get Checkbox value and store Login Details in Variables

Posted: Tue Feb 24, 2015 3:49 pm
by Mark Wong

When Checkbox clicked: Call JS
var check = Apperyio("RememberPW").find('input[type="checkbox"]').val();
alert (check.val());
Sorry, why the alert is not appearing?