Adding Submit button in detail page and Status column on summary page

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

Adding Submit button in detail page and Status column on summary page

spanithi
Hello Team,

I am trying do the following
  • Creating a new form where I added a custom button like a Submit button.
  • Edit the form and Clicks Save and Summary to return to the summary page where I want to add a new column as Status which shows form status as "In Progress"
  • Re-opens the form created above, clicks Submit and I want view a warning dialog like "Are you sure you want to submit this form?"
  • Clicks Yes and views the summary page where the Status column for this form should show as "Submitted".

As am relatively new to orbeon. It would be great if you can guide me or provide inputs on how to do this ?/

Thanks in advance.

Regards,
SATISH

--
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: Adding Submit button in detail page and Status column on summary page

Alessandro  Vernet
Administrator
Hi Satish,

Your requirement will be handled out of the box once we’ll have implemented
RFE #2256, which we are planning to do next year. Until then, you will need
to do a bit more work than we (and most likely you) would like:

- Add a hidden field in your form to keep track of the status. Mark that
field as showing on the summary page.
- Use the `xf:setvalue` action in your submit process to update the status.
- Make all the fields readonly when the status is “submitted”.

And of course, just le me know if any of those steps aren’t quite clear.

https://github.com/orbeon/orbeon-forms/issues/2256

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 post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Adding Submit button in detail page and Status column on summary page

spanithi
Thank You Alex for your reply.
Could you also please let me know how can I add hidden form field. Because I could not find any property or  field and am bit confused.
It would be great if you can provide me some more inputs on this. and also please guide me on xf:setvalue property.

Thanks much for your help

Regards,
Satish

On Sunday, November 26, 2017 at 11:22:11 AM UTC+5:30, Alessandro Vernet wrote:
Hi Satish,

Your requirement will be handled out of the box once we’ll have implemented
RFE #2256, which we are planning to do next year. Until then, you will need
to do a bit more work than we (and most likely you) would like:

- Add a hidden field in your form to keep track of the status. Mark that
field as showing on the summary page.
- Use the `xf:setvalue` action in your submit process to update the status.
- Make all the fields readonly when the status is “submitted”.

And of course, just le me know if any of those steps aren’t quite clear.

<a href="https://github.com/orbeon/orbeon-forms/issues/2256" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Forbeon%2Forbeon-forms%2Fissues%2F2256\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH2baNTqk2mGedmB7NdnxqgBPI-JA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Forbeon%2Forbeon-forms%2Fissues%2F2256\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH2baNTqk2mGedmB7NdnxqgBPI-JA&#39;;return true;">https://github.com/orbeon/orbeon-forms/issues/2256

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">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 post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Adding Submit button in detail page and Status column on summary page

Alessandro  Vernet
Administrator
Hi Satish,

By "hidden fields" I meant a field hidden to the user. You can hide a field
from user by going to the Control Settings for the field, and in the
Formulas tab, in Visibility, use the XPath expression `false()`. This allows
you to create a "private" or "hidden" field that your form logic can use,
but that will never be visible to end-users.

You can find more about the `xf:setvalue()` action on the page linked below.
And if you are new to processes you might want to read more about those, by
checking out the pages under "Buttons and processes" linked from the left
sidebar in the documentation.

https://doc.orbeon.com/form-runner/advanced/buttons-and-processes/actions-xforms.html

I hope this helps,

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 post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Adding Submit button in detail page and Status column on summary page

spanithi
Hi Alex, This is done now. Able to achieve what I needed. Thanks much for
your inputs and help.
Regards,Satish

--
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 post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Adding Submit button in detail page and Status column on summary page

spanithi
In reply to this post by spanithi
Thank You Alex. this is done now. Able to achieve what I needed. Thanks a lot for your help.
Satish

On Thursday, November 23, 2017 at 5:44:29 PM UTC+5:30, Satish Panithi wrote:
Hello Team,

I am trying do the following
  • Creating a new form where I added a custom button like a Submit button.
  • Edit the form and Clicks Save and Summary to return to the summary page where I want to add a new column as Status which shows form status as "In Progress"
  • Re-opens the form created above, clicks Submit and I want view a warning dialog like "Are you sure you want to submit this form?"
  • Clicks Yes and views the summary page where the Status column for this form should show as "Submitted".

As am relatively new to orbeon. It would be great if you can guide me or provide inputs on how to do this ?/

Thanks in advance.

Regards,
SATISH

--
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: Adding Submit button in detail page and Status column on summary page

Alessandro  Vernet
Administrator
Excellent Satish, I'm glad using an "hidden field" worked for you, and thanks
for the update.

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 post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet