Can I change the icon and text of the submit button in form builder?

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

Can I change the icon and text of the submit button in form builder?

bpmf
Hi,

The text label of submit button can be changed by setting
"oxf.fr.resource.*.*.en.detail.labels.submit-document" property. I
want to know can it be changed in a form's definition using form
builder ?

Another question, can I  change the icon of submit button for a form
(not for every form)?


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Can I change the icon and text of the submit button in form builder?

Alessandro  Vernet
Administrator
You can't override resources using properties from Form Builder. (You can override oxf.xforms.… properties by editing the source, adding an attribute on the xforms:model, but here you need to override an oxf.fr.… property.)

And at this point, you can't override the image used in the submit button, or other similar buttons, with a property. For this, you need to edit the buttons.xsl file (look for the template for fr:submit-button).

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Can I change the icon and text of the submit button in form builder?

bpmf
I tried to  use CSS to  hide the original icon and use a background image, it works.
Reply | Threaded
Open this post in threaded view
|

Re: Can I change the icon and text of the submit button in form builder?

Alessandro  Vernet
Administrator
Yes, using CSS to override the image is actually a very good way to do it.

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