I have a checkbox to make some of the data on my records private.
When that checkbox is checked I hide the private data and shows a button to access these data IF a password is correct.
BUT ...
I too need to be able to UN-privatize the data again by UN-checking the checkbox BUT ONLY if the password is right.
I then think I need a method to check the state of the checkbox when I click it.
If it's
1) UN-checked I have to check it, hide the data and show the "Show"-butten - and it works nicely
2) ALREADY checked I have to ask for the password ect, ect
But HOW do I check the state of the checkbox in the click-event of that same checkbox ... I seems like the state is changing the moment I click on the checkbox !
Any ideas ?
When that checkbox is checked I hide the private data and shows a button to access these data IF a password is correct.
BUT ...
I too need to be able to UN-privatize the data again by UN-checking the checkbox BUT ONLY if the password is right.
I then think I need a method to check the state of the checkbox when I click it.
If it's
1) UN-checked I have to check it, hide the data and show the "Show"-butten - and it works nicely
2) ALREADY checked I have to ask for the password ect, ect
But HOW do I check the state of the checkbox in the click-event of that same checkbox ... I seems like the state is changing the moment I click on the checkbox !
Any ideas ?