Get the return reference value once the form is submitted

anu menon asked on November 12, 2015 11:30

Dear Support

Could you please help me in the form submissions settings. My client wanted the reference value after the form is submitted. and this value should go as a auto responder and also disply it in thank you message. Please help me urgently.

Thanks Anu

Recent Answers


David te Kloese answered on November 12, 2015 11:38

Hi,

With the thank you message do you mean an email send to the person who entered the form?

Did you have a look at the auto responder and notification documentation?

https://docs.kentico.com/display/K82/Form+autoresponder+emails#Formautoresponderemails-Autorespondere-mails

Kentico can generate the basics for you... select Email notification tab, check send form to email. Check Use custom layout and press generate table layout. This should get you going!

Greets,

David

0 votesVote for this answer Mark as a Correct answer

anu menon answered on November 12, 2015 11:44

Thanks, But how can I display the ID generated for the form submitted along with thank you message in the page.

0 votesVote for this answer Mark as a Correct answer

Timothy Fenton answered on November 12, 2015 12:49

Hello Anu, you will not be able to get any automatically generated value in autoresponder or in thank you message, such as the GUID and ID. These values are generated after both of these messages fire, not before; so you just don't have the context to do this. That being said you should have access to the other fields that are input by customer or have some default value set in these areas. Another option for the autoresponder is to create your own autoresponder by handling the BizFormItemEvents.Insert.After event that fires after the bizform is added to the database, here you will have access to the GUID and the ID.

0 votesVote for this answer Mark as a Correct answer

anu menon answered on November 12, 2015 13:23

Hi

I have created the redirection to thankyou page as below after the form submission. So how can I just print the 31 in the same thankyou page. I need to show as your reference ID is REF:31

ThankYou.aspx?ID=31

Thanks Anu

0 votesVote for this answer Mark as a Correct answer

Timothy Fenton answered on November 12, 2015 14:18

Hello if you already have ID=31 in there then you could try doing the following:

REF: {% QueryString.GetValue("ID", "not found") #%}

hope this helps

0 votesVote for this answer Mark as a Correct answer

anu menon answered on November 12, 2015 14:29

How can I print it in a page should I use webparts for this??

0 votesVote for this answer Mark as a Correct answer

anu menon answered on November 15, 2015 07:45

Hi

Can you please answer my above query.

Thanks Anu

0 votesVote for this answer Mark as a Correct answer

Timothy Fenton answered on November 16, 2015 12:06

hello anu, yes you should be able to just simply add it to a static text field or whichever other webpart you would like

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.