- Edited
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 = '10'; // this needs to be set to QA reporting all the time$pat_id = $_GET;$user_id = $_GET;$study_date = $_GET;$frame_number = $_GET;$nav->setActiveNav('new');$inc='open.inc.php';foreach ($form->getFields() as $field) { foreach ($field as $f) { }}include(CLIENTINC_DIR.'header.inc.php');include(CLIENTINC_DIR.$inc);include(CLIENTINC_DIR.'footer.inc.php');