On pages that allow an authorised user to authorise or decline requests, you may want to amend the button text to suit your particular process.
Given the following example:
The JSON definition for this page is as follows:
{
"title":"Awaiting Authorisation",
"action":"query",
"queryreference":"AU - Qualifications",
"role":"AU",
"options":"Authorise,Reject",
"select_mode":"Multiple",
"has_attachments":"Yes",
"message_authorise_ok":"Selected record(s) has been updated",
"message_authorise_error":"There was an issue updating the selected record(s)",
"message_authorise_partial":"There was an issue updating some of the records",
"message_no_data_content":"No qualifications awaiting authorisation.",
"message_no_data_title":"Awaiting Authorisation",
"status":"N",
"filters":{
"STATUS_ID":"Authorise"
}
}
If we wanted to change the Authorise button text to ‘Accept’ and the Reject button text to ‘Decline’ we would replace the “options” property with the following:
{
"title":"Awaiting Authorisation",
"action":"query",
"queryreference":"AU - Qualifications",
"role":"AU",
"options":"AUTHORISE:Accept,REJECT:Decline",
"select_mode":"Multiple",
"has_attachments":"Yes",
"message_authorise_ok":"Selected record(s) has been updated",
"message_authorise_error":"There was an issue updating the selected record(s)",
"message_authorise_partial":"There was an issue updating some of the records",
"message_no_data_content":"No qualifications awaiting authorisation.",
"message_no_data_title":"Awaiting Authorisation",
"status":"N",
"filters":{
"STATUS_ID":"Authorise"
}
}
This would result in the button text being changed, and would appear as below:
You can also add tool-tips to the Authorise and Reject buttons by adding the following entries:
{
"title":"Awaiting Authorisation",
"action":"query",
"queryreference":"AU - Qualifications",
"role":"AU",
"options":"AUTHORISE:Accept,REJECT:Decline",
"authorise_tooltip":"This is a tooltip!",
"reject_tooltip":"This is a tooltip!",
"select_mode":"Multiple",
"has_attachments":"Yes",
"message_authorise_ok":"Selected record(s) has been updated",
"message_authorise_error":"There was an issue updating the selected record(s)",
"message_authorise_partial":"There was an issue updating some of the records",
"message_no_data_content":"No qualifications awaiting authorisation.",
"message_no_data_title":"Awaiting Authorisation",
"status":"N",
"filters":{
"STATUS_ID":"Authorise"
}
}