Can a form access its own form ID

  • Profile Image
    NRCsupport
    Asked on March 03, 2014 at 08:12 PM

    (I might have asked this before).

    A  form can pass its submission ID to an external thank you page, and to the emails.

    I would also like to pass the form ID number, so that I can display it and use it in  my thank you page and the emails. I know that I cancopy the form ID into a field in the form, and use it from there. But I'd rather have a automatic way so that if I use the same technique again, I ca just coy some code or fields, and not have to worry about the actual number.

    What I am really trying to do is to get edit_link into my own thanyou page, so that I can provide a link there that the user can click to go back and edit the submission. Given the form ID and the submission ID I should be able to construct the link.

    The reason why I want to have this link in my thankyou page is that the user might not have access to his emails on the computer where he is submitting the form - so it could be useful for him to be able to get straight back in and edit the submission.

    I have to use an external thankyou page for two reasons:-

    1. I want the page to be another JotForm form, so that I can use conditions to display only those bits that are relevant to the submission. I can't pass edit_link to this in the url because it contains ? and &, which will presumably cause the processing of the url line to get confused.

    2. I want the page to be in my website so that our usual page header and nav buttons are there. I see no other sensible way of escaping from the thankyou page.

  • Profile Image
    ashwin_d
    Answered on March 03, 2014 at 09:36 PM

    Hello NRCsupport,

    Unfortunately, I cannot think of a way to access / know the form ID without storing it in a hidden form field. 

    As there is not automated way to get the formID in your form or thank you page, I can only think of two possible solution for your requirement (which you are already aware of):

    1. Add a hidden form field in your form and store the form ID which can be used to pass to your thank you page.

    2. Directly use the {edit_link} in your form's submission email to achieve your requirement.

    Do get back to us if you have any questions.

    Thank you!

  • Profile Image
    NRCsupport
    Answered on March 04, 2014 at 09:01 AM

    Thanks,

    I am already doing number 2 in your suggestion. I am doing number 1 as well, but trying to work out how to use that to effectively build the edit link in the (external) thankyou page, which is a JotForm form. I really need the string concatenation feature of the old calculation field.

  • Profile Image
    ashwin_d
    Answered on March 04, 2014 at 10:31 AM

    Hello NRCsupport,

    For your requirement of string concatenation: As per our developer who is working on this feature, this is already in development and will be released soon. You can check his answer on one of your own thread:  http://www.jotform.com/answers/340442-Can-I-concatenate-text-fields-and-put-the-result-in-a-field

    Thank you!

  • Profile Image
    NRCsupport
    Answered on March 04, 2014 at 12:04 PM

    Thankyou for the indication that it will be released soon. I think this is the first indication of a timescale.