xf:submission

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

xf:submission

masha.knezevic
Hi all,

I would like to prune data before saving the form in order to avoid saving values for hidden fields.
How can this be achieved? 
Could I somehow add a step to the save-final process which could do this before save?

Thanks in advance.

Kind regards,
Masa

--
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].
Reply | Threaded
Open this post in threaded view
|

Re: xf:submission

Alessandro  Vernet
Administrator
Hi Masa,

Do you need this to happen when the data is submitted to a service you provide, or would it need to happen for data saved by Orbeon Forms in the database? If the former, using a `send(nonrelevant = "remove")` or `send(nonrelevant = "empty")` will do it (for more on this, see the first link below). If the latter, this isn't possible yet, but we have an RFE for this (see the second link below). Does this help?

https://doc.orbeon.com/form-runner/advanced/buttons-and-processes/actions-form-runner-send.html
https://github.com/orbeon/orbeon-forms/issues/3152

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

Re: xf:submission

masha.knezevic
Hi Alex,

In my case, I would need the latter. Seeing as I'm working on Orbeon 4.8, how can I add the xf:submission with relevant = "false"?
I will make sure to update my post on Monday with an example of a form I'm working on.
I have a page which includes the form with different controls (input fields, autocomplete, dynamic dropdown, radio buttons) and I also have a button on the page which isn't in the form, but rather on the page and it triggers the save-final-process.

Thanks in advance.

Best,
Masa

On Friday, August 18, 2017 at 6:58:26 PM UTC+2, Alessandro Vernet wrote:
Hi Masa,

Do you need this to happen when the data is submitted to a service you
provide, or would it need to happen for data saved by Orbeon Forms in the
database? If the former, using a `send(nonrelevant = "remove")` or
`send(nonrelevant = "empty")` will do it (for more on this, see the first
link below). If the latter, this isn't possible yet, but we have an RFE for
this (see the second link below). Does this help?

<a href="https://doc.orbeon.com/form-runner/advanced/buttons-and-processes/actions-form-runner-send.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdoc.orbeon.com%2Fform-runner%2Fadvanced%2Fbuttons-and-processes%2Factions-form-runner-send.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHSi2-51g34EVYAepKNp2P9_f7npg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdoc.orbeon.com%2Fform-runner%2Fadvanced%2Fbuttons-and-processes%2Factions-form-runner-send.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHSi2-51g34EVYAepKNp2P9_f7npg&#39;;return true;">https://doc.orbeon.com/form-runner/advanced/buttons-and-processes/actions-form-runner-send.html
<a href="https://github.com/orbeon/orbeon-forms/issues/3152" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Forbeon%2Forbeon-forms%2Fissues%2F3152\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHnQ20sXP5oGN676tm62ygPTwnEGQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Forbeon%2Forbeon-forms%2Fissues%2F3152\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHnQ20sXP5oGN676tm62ygPTwnEGQ&#39;;return true;">https://github.com/orbeon/orbeon-forms/issues/3152

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
View this message in context: <a href="http://discuss.orbeon.com/xf-submission-tp4662715p4662717.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2Fxf-submission-tp4662715p4662717.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFG1tlI8JEracpMfzOi2daVzi5ATA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2Fxf-submission-tp4662715p4662717.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFG1tlI8JEracpMfzOi2daVzi5ATA&#39;;return true;">http://discuss.orbeon.com/xf-submission-tp4662715p4662717.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].
Reply | Threaded
Open this post in threaded view
|

Re: xf:submission

Alessandro  Vernet
Administrator
Hi Masa,

I'm afraid that clearing  non-relevant fields on save would really require that we implement RFE #3152. I've added a +1 from you on that RFE, but can't say when it will be implemented. If this is a top priority for you, it might might make sense for your organization to sponsor the implementation of this feature.

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