Please delete this post. I was to quick on posting. It's is more or less obvious ..
Sorry.
-------------------
What I want to reach:
- To add a checkbox A and and textfield B. Done
- Add functionality:
-> When checkbox A is set to ON, the value of field B will be deleted and filed B locked.
-> When A is set to OFF, field B is unlocked.
To research the functionality, I added this JS to the Checkbox:
Code: Select all
var CHK_HOEHEOBEN = this.getField("CHK_HOEHEOBEN");
app.alert(CHK_HOEHEOBEN.value);
"Click it vanilla" means "toggle the state"
"Click it with JS" means "toggle the state plus do the JS"
But with JS it only display the alert and does not change the state.
Is there a example for my simple wanted functionality?