Detail view button customizations

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
pfrumkin
Veteran Member
Posts: 157
Joined: 2020-02-18 17:58
Location: Albuquerque, New Mexico USA

Detail view button customizations

Post by pfrumkin » 2021-05-03 17:34

Hi All,

I was unable to find this documented, hope it helps. I have applied to INSERT/SAVE buttons here but could be extended easily to other buttons. These are in the tablename_init hook.

Change button label
global $Translation;
$Translation['Add New'] = 'Submit New Registration Request';
$Translation['Save New'] = 'Save Registration Request';

Change insert message
global $Translation;
$Translation['new record saved'] = "Your request has been submitted. You will be contacted with details.";

Change redirect after insert
$options->RedirectAfterInsert = 'Thank_you.php'; // some other page

I also highly recommend using Jan's App Helper library for adding new buttons.

~Paul
AG 5.84

Post Reply