This topic is locked

Display ticket number

8/13/2019 9:18:39 AM
PHPRunner General questions
Z
zeth385 author

Hi there!

I'm creating a ticket system at office. User will type in data to create a ticket. I want it to display the ticket number in a pop up -or in any way possible- when user hits the button "Save". Something like "The ticket number is 1234"





Can anyone help me? Thanks in advance







J
John 8/13/2019

There are many ways but the simplest would be to change the $message value from the Before Record Added on the events page..
//assign new ticket number//

$newTicketNumber = 1234;

$message = '<script>alert("The ticket number is '.$newTicketNumber.'");</script>';

Sergey Kornilov admin 8/15/2019

Another easy option - redirect user to the View page after new record was added.