Jump to content
  • 0

change checkbox when updated


DRAhmed

Question

i have a checkbox , where in one entry data page it automatically loads yes 

on another its removed so that it loads no 

 

now, i have another report data page , i want that on the details page when update button is pressed , the checkbox is automatically changed from no to yes

 

i have attached a screenshot of the checkbox and its current settings 

data entry.PNG

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Hi DRAhmed,

You can use this simple Triggered Action for this functionality:
image.png

If you do not have access to Triggered Actions, you can use the script below in the Footer of the Details page. Please remember to disable the HTML editor or press the Source button before pasting the code. You will also need to replace "CheckboxField" with your Field name (leave the EditRecord part before the name).

<script type="text/javascript">
  
document.addEventListener('BeforeFormSubmit', function (event) {
document.getElementById("EditRecordCheckboxField").checked = true;
});
  
</script>

I hope that helps!

Regards,
SP

Link to comment
Share on other sites

  • 0
On 9/15/2023 at 10:12 AM, SushiPizza said:

Hi DRAhmed,

You can use this simple Triggered Action for this functionality:
image.png

If you do not have access to Triggered Actions, you can use the script below in the Footer of the Details page. Please remember to disable the HTML editor or press the Source button before pasting the code. You will also need to replace "CheckboxField" with your Field name (leave the EditRecord part before the name).

<script type="text/javascript">
  
document.addEventListener('BeforeFormSubmit', function (event) {
document.getElementById("EditRecordCheckboxField").checked = true;
});
  
</script>

I hope that helps!

Regards,
SP

i tried it but it didnt work 

 


<script type="text/javascript">
  
document.addEventListener('BeforeFormSubmit', function (event) {
document.getElementById("EditRecorddata_entry").checked = true;
});
  
</script> 

image.png

Link to comment
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.

Guest
Answer this question...

×   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.

Loading...
×
×
  • Create New...