samantha
12/12/2018, 6:59 PMvar params = option.request.parameters;
log.debug('params',params);
log.debug('params.custpage_accesstoken',params.custpage_accesstoken);
if((params!= null && params!= undefined && params!='') &&
(params.custpage_accesstoken!= null && params.custpage_accesstoken!= undefined && params.custpage_accesstoken!='')){
log.debug('Access Token value received from client script is -> ',params.custpage_accesstoken);
}
As i added a normal button instead of submit button , is it failing ? Please adviceVaid
12/12/2018, 7:02 PMsamantha
12/12/2018, 7:03 PMsamantha
12/12/2018, 7:03 PMcurrentRecord.get().setValue({fieldId: 'custpage_accesstoken', value:accessToken});
samantha
12/12/2018, 7:04 PMvar accessToken = token_form.addField({
id : 'custpage_accesstoken',
type : ui.FieldType.LONGTEXT,
label : 'Hidden field'
}).updateDisplayType({
displayType : ui.FieldDisplayType.DISABLED
});
Vaid
12/12/2018, 7:05 PMsamantha
12/12/2018, 7:06 PMif(option.request.method == 'POST')
{}
but its not going inside it even thought i clicked the button . so i removed it temporarilyVaid
12/12/2018, 7:07 PMsamantha
12/12/2018, 7:08 PMtoken_form.addButton({
id : 'custpage_refresh_token',
label : 'Refresh Token',
functionName : 'getAccessTokenFromRefreshToken'
});
Vaid
12/12/2018, 7:10 PMsamantha
12/12/2018, 7:11 PMVaid
12/12/2018, 7:13 PMVaid
12/12/2018, 7:14 PMsamantha
12/12/2018, 7:16 PMVaid
12/12/2018, 7:24 PMsamantha
12/12/2018, 8:39 PM