Jump to content
Sign in to follow this  

update checkbox field

Recommended Posts

I am having trouble with this simple if statement. I would like to update a checkbox field if a separate field is "Final Staff Review".

The script I have is:


function = applocked(){
if (document.getElementById("EditRecordReviews_ReviewStage").value == "Final Staff Review")
document.getElementById('EditRecordApplication_Detail_AppLocked').checked = true;} 
else {
document.getElementById('EditRecordApplication_Detail_AppLocked').checked= false;
document.getElementById("caspioform").onload = applocked;



Am I missing something? The field is a Yes/No field and it is on the datapage as a checkbox field. I also have several formulas deployed on this page, could that be impacting this?

This is currently not working.

Share this post

Link to post
Share on other sites

There should not be equal after function, you should have


function applocked() { 

Also change document.getElementById("caspioform").onload = applocked;  to document.getElementById("caspioform").onsubmit= applocked;

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...