|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
juggernautsei Smarty n00b
Joined: 31 Aug 2016 Posts: 2
|
Posted: Fri Sep 02, 2016 3:03 pm Post subject: How to configure optgroup label |
|
|
I am working inside an opensource project OpenEMR.
In the pharmacy section where I am working. I wanted to add to the list of pharmacies from a different table. So I did a push array into the first array to add the other pharmacies. Now on template side this line creates the dropdown
{html_options name="pharmacy_id" options=$prescription->pharmacy->utility_pharmacy_array() selected=$prescription->pharmacy->get_id()}
And because I have the pushed the array into the first array, the line above now adds
<optgroup label="294">.....</optgroup> the pushed list of pharmacies.
Which I find OK but the 294 label shows up on the screen. Is there a way to set the optgroup label.
Thanks! |
|
Back to top |
|
elpmis Smarty Elite
Joined: 07 Jun 2007 Posts: 321
|
|
Back to top |
|
juggernautsei Smarty n00b
Joined: 31 Aug 2016 Posts: 2
|
Posted: Wed Sep 14, 2016 1:28 pm Post subject: |
|
|
I went a different route and did a UNION in the query and that fixed my issue |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|