Document template field mapping : Check box filed mapping PDf document template doesnot work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2022 10:39 AM
Hi Community, I am tired of trying the different options /script for mapping the check box with document template mapping
I have tried different option like return 1/0,Yes/No,YES/NO,On/Off,yes/no,True/False,true/false,TRUE/FALSE
Can any one help me how could i map this field as i need to map multiple fields
here is the code :
(function evaluateMappingFieldValue(taskGr /* GlideRecord for parent task */, mappingField /* Pre-computed mapping field value */) {
gs.info('test');
if(taskGr.u_graduate == true){
gs.info('true');
return 'yes';
}
else{
return false;
}
})(taskGr, mappingField);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2022 06:07 AM
Hi
Regards,
Mike

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2022 01:09 PM
Regards,
Mike

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2023 08:36 AM - edited 03-06-2023 08:38 AM
The only way I could get this to work was by doing
return 'Yes';
That seems to insert an X when you preview the PDF from a record, though when you generate and download it it displays as a tick.