Forum Discussion
NathanHawe
Qrew Cadet
Since the end result of each button example is a page reload, I don't think there's a way you can chain them together without making your own form in a code page and handling everything yourself.
It's a bit hacky but if the checkbox you want to update is on the form, you could update its value before saving using DOM manipulation. For example, if the field ID for your checkbox is 12:
"<div class='Vibrant Success' onclick=$('#_fid_12').prop('checked',true);$('#footerSaveAndKeepWorkingMenuOption').click();>Generate Document</div>"
------------------------------
Nathan Hawe
------------------------------
It's a bit hacky but if the checkbox you want to update is on the form, you could update its value before saving using DOM manipulation. For example, if the field ID for your checkbox is 12:
"<div class='Vibrant Success' onclick=$('#_fid_12').prop('checked',true);$('#footerSaveAndKeepWorkingMenuOption').click();>Generate Document</div>"
------------------------------
Nathan Hawe
------------------------------
StacySeapy
4 years agoQrew Member
Thank you, Nathan!!
Your solution did the trick! The only slightly hacky part of the solution was creating two formula rich text fields that a form rule is set up to show/not show depending on if the trigger checkbox is/isn't selected (so clicking the button will either change the checkbox to true or false, as needed).
I appreciate your help - I started down the rabbit trail of custom code/script pages and was quickly getting lost. Creating two "button" fields for each trigger field is well worth holding off on entering the world of code pages.
------------------------------
Stacy
------------------------------
Your solution did the trick! The only slightly hacky part of the solution was creating two formula rich text fields that a form rule is set up to show/not show depending on if the trigger checkbox is/isn't selected (so clicking the button will either change the checkbox to true or false, as needed).
I appreciate your help - I started down the rabbit trail of custom code/script pages and was quickly getting lost. Creating two "button" fields for each trigger field is well worth holding off on entering the world of code pages.
------------------------------
Stacy
------------------------------