Designing defaulte custom form template in orbeon and congratulation with releasing Orbeon 4.4

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

Designing defaulte custom form template in orbeon and congratulation with releasing Orbeon 4.4

javaudvikling
Hi Orbeon,

Congratulation with releasing Orbeon 4.4. We have just downloaded and already started testing all the new features... you have done a good job...

Can you tell me whether the following is possible:

1. When a user click on the form builder link on the start page, the user is presented with a default form template.
What I want is to create a custom form template with some predefined metadata, setting the permission  tags etc.  When a user click on the form builder link on the start page, the user is presented with my custom form template and not the default Orbeon template... Is this possible?

2. If this isn't possible, how can I pre-populate the permission tags with the right permissions, so the designer do not have to set the permissions on every forms. I want to automatically set the same permissions on every forms?

Regards
Bala  
Reply | Threaded
Open this post in threaded view
|

Re: Designing defaulte custom form template in orbeon and congratulation with releasing Orbeon 4.4

Erik Bruchez
Administrator
Bala,

Thanks for the kind words.

This is possible but not in a really good way. There is a file called template.xml which is loaded by the builder for new forms. You can see the latest version here:

https://github.com/orbeon/orbeon-forms/blob/master/src/resources/forms/orbeon/builder/form/template.xml

You could override it under:

WEB-INF/resources/forms/orbeon/builder/form/template.xml

But his is a bit dangerous as, if an Orbeon Forms update changes the template, your custom template will still override it. Still, that's the best we have at this point. It would be ideal to be able to have global settings that apply to all forms.

Regards,

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: Designing defaulte custom form template in orbeon and congratulation with releasing Orbeon 4.4

javaudvikling
Hi Erik,

Thanks for your reply.
We will do some test and it would be so nice to have a global setting for this.

Regards
Balatharan
Reply | Threaded
Open this post in threaded view
|

Re: Designing defaulte custom form template in orbeon and congratulation with releasing Orbeon 4.4

Erik Bruchez
Administrator