Hello Everyone!
I am using Dialog API in custom button (Client Before event) and I have a field (e.g. name: reqdResources) where I want to use checkbox list to select multiple values and pass that value as a single stirng variable in server event. I have the following code and it is not working. It just display one check box with the label in popup window. I am hoping someone would be able to correct my code or give some pointers where I can explore the solution...Thank you, Abhi
return ctrl.dialog( {
title: 'Available Resources',
header: 'Available resources for the selected datetime!
',
fields: [
{
name: 'startDate',
required: true,
label:'Enter start date:',
value: 'YYYY-MM-DD'
},
{
name: 'startTime',
required: true,
label:'Enter start date time:',
value: '10:30:00'
},
{
name: 'reqdDuration',
required: true,
label:'Enter required duration in Hours:',
value: '1.5'
},
{
name: 'reqdResources',
label:'Select required resources:',
type: 'checkbox',
horizontal : true,
options: ['Audio Conference','Video Conference','Projector','Smart Projecttor']
}],
ok: 'Submit',
cancel: 'Cancel'
});