Xmlformgen formatting

biller2 wrote on Thursday, December 05, 2013:

I have a question about formatting a form with xmlformgen. I was able to create my form and access it from within openemr. What I would like to do is change the display of the checkbox list from vertical to horizontal. The vertical display of the checkbox list is taking up more room then I would like and is requiring additional scrolling that would not be needed if I was able to display the checkboxes horizontally. What would be the best way to accomplish this. Thanks in advance for your help. John

tmccormi wrote on Friday, December 06, 2013:

XMLFormGen does not have a way to control the formating. But you can
generate the code and then edit the resulting code as needed.

Tony

biller2 wrote on Friday, December 06, 2013:

Tony, thanks much for your suggestion. I did poke around in the resulting code but have not found the correct place to make the change. I know it is difficult to help not having the the form folder but would it be possible to guide me with out this information? For example should I look in the .css file or one of the .php files that was created. Thanks again for your assistance John

tmccormi wrote on Friday, December 06, 2013:

The best thing to do is post a git branch with your code for people to take
a look at.

Tony

biller2 wrote on Monday, December 09, 2013:

Tony, thanks so much for your help. Here is the link to the folder created when I ran “make INFILE-dap.xml” openemr/interface/forms/dap at xmlformgen · biller2/openemr · GitHub
Here is a link to the dap.xml file openemr/dap.xml at xmlformgen · biller2/openemr · GitHub
This is a mental healh form. I would gladly contribute it back to the community if you think it would be helpfull.
If for some reason the links to work of I havn’t set up something correctly please let me know.
Thanks again for your assistance in helping me format this. John