Hello,
I try using the code in the manual to add a custom field on the edit page in this case is a checkbox. here is the code i use
//html
<INPUT id=jump name=jump value=6 type=checkbox>Jump to Remote Attestation
//on js load events page
this.on('beforeSave', function(formObj, fieldControlsArr, pageObj){
var val = $("#jump").val();
formObj.baseParams['jump'] = val;
});
//before record added event
$new_task = $_REQUEST['jump'];
if($new_task == 6){
$values['task'] = $new_task;
}
the problem here is that i only need to update the record if the checkbox is checked and right it's updating every single record even if the checkbox is not checked :/ is there something wrong with the code?
Thanks for your help