Hi Alex,
I have number of Orbeon application running on production where i have some requirement in Form builder. I need to pre-populate one label control with id="age" with value passed to Form builder URL as query string. For example: http://<<formbuilder_url>/?age=123 Now in this case i need to insert this value in xform generated by form builder. I was thinking the way to get one label control on form pre populated with this value 123 so that when this form is saved it get saved in xform under element <age>123</age> Or there is any other way to achieve this in Form builder.
Regards,
Hasan |
Any update please
Regards,
Hasan |
Administrator
|
In reply to this post by Hasan
Hasan,
In the control's validation properties, set the Initial Value to something like: xxforms:get-request-parameter('age') That should do the trick. -Erik On Thu, Jun 14, 2012 at 7:23 AM, Hasan <[hidden email]> wrote: > Hi Alex, > > I have number of Orbeon application running on production where i have some > requirement in Form builder. > > I need to pre-populate one label control with id="age" with value passed to > Form builder URL as query string. > > For example: http://<<formbuilder_url>/?age=123 > > Now in this case i need to insert this value in xform generated by form > builder. I was thinking the way to get one label control on form pre > populated with this value 123 so that when this form is saved it get saved > in xform under element <age>123</age> > > Or there is any other way to achieve this in Form builder. > > > > ----- > Regards, > Hasan > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Pre-defined-label-control-on-Form-Builder-tp4655255.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > 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 > -- 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 |
Hi Erik,
In above scenerio, I think user have to create label with intial value given as xxforms: get-request-parameter() in validation properties. We want that label too as pre-populated which will have request parameter's "e.g. age" value. for example if user go to create XForm using XForm Builder, Label should be pre-populated in starting of the form either visible or hidden. Thanks, regards Surendra Gautam |
Administrator
|
Surendra,
As far as setting default label values in Form Builder, this is not directly possible at this point. You would have to write your own XForms code to set the label value this way. -Erik On Mon, Jun 25, 2012 at 2:50 AM, surendra.gautam <[hidden email]> wrote: > Hi Erik, > > In above scenerio, I think user have to create label with intial value given > as xxforms: get-request-parameter() in validation properties. > > We want that label too as pre-populated which will have request parameter's > "e.g. age" value. > > for example > > if user go to create XForm using XForm Builder, Label should be > pre-populated in starting of the form either visible or hidden. > > Thanks, > regards > > Surendra Gautam > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Pre-defined-label-control-on-Form-Builder-tp4655255p4655345.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > 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 > -- 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 |
Free forum by Nabble | Edit this page |