How to modify the theme applied to Form Builder forms?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to modify the theme applied to Form Builder forms?

Rod Glover
I have learned how to modify the theme associated with a hand coded form (an app, like XForms Hello).

These changes do not have any effect on the forms I create with Form Builder. I have not been able to find any information on modifying the theme (as in theme.xsl) applied by Form Runner to FB forms. (In passing: FR runs only FB forms, correct?).

I know how to introduce my own CSS into FB/FR forms, but that does not actually address my requirement. I want a different header and navigation block at the top of the form. Entirely different markup and content altogether. How do I do that?

Rod Glover
Senior Consultant
Vivid Solutions, Inc.
Reply | Threaded
Open this post in threaded view
|

Re: How to modify the theme applied to Form Builder forms?

Alessandro  Vernet
Administrator
Hi Rod,

If you can't do what you're looking for, there is a fr/theme.xsl for Form Runner you could try updating. If you really need to change the markup generated by Form Runner, then you'll have to change code in Form Runner itself.

https://github.com/orbeon/orbeon-forms/blob/master/src/resources/apps/fr/theme.xsl.

And you're correct: Form Runner is the "runtime for forms created with Form Builder". You could write those forms "by hand" though, and deploy them in resources/forms, and load them through the read-only resource persistence layer.

https://github.com/orbeon/orbeon-forms/tree/master/src/resources/forms

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet