Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Prefill form using GET

I am attempting to have form pre-filled when creating new tickets. There are about 4 parameters that are passed via URL.

I have been able to pre-select the topic by setting the variable topicId . However, I cannot understand how to then pre-fill the fields.

This is my current attempt. As you can see I imagine that something needs to be done within those foreach loops, but not sure what.

$_GET['topicId'] = '10'; // this needs to be set to QA reporting all the time
$pat_id = $_GET['pat_id'];
$user_id = $_GET['user_id'];
$study_date = $_GET['study_data'];
$frame_number = $_GET['frame_number'];

foreach ($form->getFields() as $field) {
foreach ($field as $f) {




Sign In or Register to comment.