This topic is locked

Creating Fieldsets Driven by a Database Table

1/25/2016 10:40:20 AM
PHPRunner General questions
K
kenlyle author

I am looking at doing a PHP version of some screens that are currently in a .NET app. There is a database table that controls the layout of the fields - it has a Group Box field, and then puts each field by name into column1 or column2.
In HTML, the Group Box would be a fieldset. I'd like to generate these layouts programmatically. I think that I could just paste the generated output into the Visual Editor, but would it be possible to enter the function name in the page and have it execute during the Build process? That would save a step, and the form would be in sync with the database table for the form after each Build and Publish.
There's a fiddle at http://jsfiddle.net/NUMcr/1/ showing the visual effect I am looking for.
Thanks for any thoughts.

Sergey Kornilov admin 1/25/2016

I guess you can insert 'PHP code snippet' somewhere on the page and add your code there or define PHP function in another file and call it from your snippet.