I need to know about how I can have the “Add to Medication List” (in the add prescription tab) box be checked by default?
I know that the code is in general_edit but i dont know how I can modify it for the “Yes” box to be checked by default.
hi @Talal_Hamdani, it’s using smarty make some changes to the prescription class like
$this->medication_array = array('No' => xl('No'), 'Yes' => xl('Yes'));
$this->myradiobox = $this->medication_array['Yes'];
first and then change the template
<div class="col">
{html_radios class="input-sm" name="medication" options=$prescription->medication_array selected=$prescription->myradiobox}
</div>
1 Like