Hi Alex - I have a scenario where I will be using same hidden section on all the forms in an app. So, I'm using a section template for this. This section template will have the form metadata which either comes from the headers or a service.
-- Published this section template and created a form where I added it from the library. If the metadata section template is not hidden in the new form I created, then I can see all the metadata values in the database and if it is hidden db stores empty/null values. Attached form and section template Is this how section templates are intended to work? Can I not hide the section templates whose fields are updated dynamically? Is there a workaround or do we have to hide it using css? Thanks Manish 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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/c2c833b6-feb2-4a92-82d7-c29b5536b6a4%40googlegroups.com. |
Administrator
|
Hi Manish,
Indeed, if the section template isn't visible, it doesn't "run". As a workaround, you could merge the section template into the form, and it will then behave like a regular section. The downside is that if the section template is changed in the library after it is merged, changes to the section template won't be reflected in the form. You'll let me know if this technique works for you. ‑Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1578703899550-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Thanks Alex but that is not what i'm looking for.
-- Also, can we have multiple section templates in an app? On Saturday, January 11, 2020 at 8:50:39 AM UTC+8, Alessandro Vernet wrote: Hi Manish, 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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/8d5b46a2-db97-4ff0-877b-7a48756281bc%40googlegroups.com. |
Administrator
|
Hi Manish,
You are saying "that is not what i'm looking for": did I misunderstand your original question? If so, could you clarify what you are looking for? > Also, can we have multiple section templates in an app? Yes. And this by just having multiple top-level sections in your app/library form; each top-level section will be available as a section template. ‑Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1579808722467-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Thanks Alex for the info.
-- As mentioned in the initial question I require the section template to be able to pull and store the values while the section template is hidden in the form. This will be an added advantage to tag metadata using a section template for the required forms. Current version does not support it. Merging the section template would not update section templates so this is not useful in our case. On Friday, January 24, 2020 at 3:42:25 AM UTC+8, Alessandro Vernet wrote: Hi Manish, 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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/2c176d2b-1f65-4c50-82c2-5e969d3146d3%40googlegroups.com. |
Administrator
|
Hi Manish,
If merging doesn't work for you, another workaround would be to: 1. Hide the section template with CSS (in Form Builder, in the Section Settings dialog put a custom CSS class, and in your own CSS make elements with the class `display: none`). 2. In the library, make all the controls in section readonly (so users won't be able to change their value by overriding your CSS). Would something like this work for you? ‑Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1580498883618-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Administrator
|
Hi Manish, did you get a chance to try using CSS to hide the section
template, so the calculation would still run? If so, did that work for you? ‑Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1581098636428-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |