Re: Linking and new form document_id

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

Re: Linking and new form document_id

Alessandro  Vernet
Administrator
You can't "instruct" Form Runner to use a document id of your choice. However, this question is often asked in a context where you would like to tell users "fill this form", provide a unique URL, and then be able to find in the database the information they entered.

You can do this by adding a request parameter to the URL, say `/new?token=123`, and saving that token as the value of a hidden field (hide the field with Visibility set to `false()`, and make its Initial Value `xxf:get-request-parameter('token')`). With this, the token will be saved with data, and if you know the token, you can find the corresponding data.

Would this work for you?

Alex

On Tue, Jan 23, 2018 at 1:12 AM, lekarin <[hidden email]> wrote:
Hello,

I'm trying to embed an orbeon form in my application and i wanted to know if
it is possible to set the document_id while linking to a new form.
I've tried something like this with no results:

/fr/[APPLICATION_NAME]/[FORM_NAME]/new/[DOCUMENT_ID]

Is there a way? Or should i use the REST API?

Thanks in advance!




--
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].

--
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: Linking and new form document_id

Alessandro  Vernet
Administrator
Hi Karlos,

Did you get a chance trying to pass a token to the form, and having it
saved? Did that solution 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 post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet