Hi My Model instance looks like :
<xf:instance id="fr-form-instance" xxf:exclude-result-prefixes="#all"> <form> <section-1> <group-type>only_individual</group-type> <regex-control/> <zip-code>test</zip-code> <coverage-start-date/> <control-5/> <control-6/> <applicant-dob/> <applicant-sex/> <applicant-us-citizen/> <control-10/> <spouse-dob/> <spouse-sex/> <spouse-us-citizen/> <next-button/> </section-1> </form> </xf:instance> How can I get the value of group-type ORBEON.xforms.Document.getValue . I mean what Id should I pass to ORBEON.xforms.Document.getValue ? |
I saw that we can get it by ID's. But the generated HTML IDs are in the format
o0section-1-control≡xf-395≡regex-control-control |
Administrator
|
Hi Robin, Correct; you need to pass the effective id, which unfortunately right now, when the control is inside XBL components, gets unnecessarily polluted with the ids of the containing XBL controls. Alex On Tue, Apr 7, 2015 at 5:16 PM robinnagpal <[hidden email]> wrote: I saw that we can get it by ID's. But the generated HTML IDs are in the You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Administrator
|
Robin,
-- And we have this RFE for improving/simplifying ids on the client, so they match more closely what you have in the XForms code, as mentioned in my previous message: Alex On Wed, Apr 8, 2015 at 9:45 AM Alessandro Vernet <[hidden email]> wrote:
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Thanks for the reply Alex. Yeah we need to have more control over getting values easily via Javascript.
|
Administrator
|
Hi Robin,
Got it, and I hope that, in the meantime, you can manage either using the "full" id you see in the DOM, or using jQuery, you can write $("[id $= 'your-id']") to get the element with an id ending with "your-id", which should also do the trick. Alex On Thu, Apr 9, 2015 at 1:08 PM, robinnagpal <[hidden email]> wrote: > Thanks for the reply Alex. Yeah we need to have more control over getting > values easily via Javascript. > > -- > View this message in context: http://discuss.orbeon.com/ORBEON-xforms-Document-getValue-tp4659764p4659794.html > Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com. > > -- > You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. > To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. > To post to this group, send email to [hidden email]. -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |