Forums

send with e-mail a link to a form

kalkal 21 Mar, 2014
Is there any way to send an email with a link to the form and the receiver follow this link to fill in the form?

Thank you
GreyHead 23 Mar, 2014
Hi Kalkal,

Yes, just add a link to the email you send using the form URL.

Bob
kalkal 23 Mar, 2014
Hi Bob,
you mean to wirte it in the template tab of email action?
kalkal 23 Mar, 2014
This is what I'm trying to do:
every time someone fills in the form, with submit sent an e-mail with a link to the filled form or a form refilled with the same data plus two new fields.
So, the form must to open or reopen to a new everytime url. And the the link must be different everytime.
What actions should I use?
GreyHead 24 Mar, 2014
Hi Kalkal,

I think what you need to do is to save the form data to a Database table, then include the record id of that entry in the link. That will let you re-open a form and add the data from that record using a DB Load action.

Bob
kalkal 24 Mar, 2014
Hi Bob,
Thank you for your replies (they help me to analyze my problem everytime).
I save the data with a DB Save action. Now,
where to create the link? In to template of email action?
and how to create it so it have the record id in the url?

Sorry for being tiring but I'm new in joomla, chronoforms, internet programming...
GreyHead 25 Mar, 2014
Hi Kalkal,

Please see this FAQ which will show you how to get the record id. You can then use something like {chronoform_data.cf_id} in the Email template to add the id to a URL.

Bob
kalkal 25 Mar, 2014
Hi Bob,
I did what you said. I tried the {chronoform_data.cf_id} and it gives me the right number.
In template tab of Email action I've made this link for test

<A HREF="http://127.0.0.1/mysite/index.php">LINK</A>
and it works just fine

But when I'm trying the below link

<A HREF="http://127.0.0.1/mysite/index.php&<?php echo({chronoform_data.cf_id});?>link</a>

it desappear all the body of the message.

What am I doing wrong?
GreyHead 26 Mar, 2014
Answer
Hi kalkal,

Please try
<a href="http://127.0.0.1/mysite/index.php?cf_id={chronoform_data.cf_id}" >link</a>


You don't need the PHP echo with the {input_name} and you do need to check your tags and quotes to make sure that the HTML is correct.

Bob
kalkal 26 Mar, 2014
Thank you Bob,
I created a new form that is connected with the same table and I used the db record load action. It works just fine.
This topic is locked and no more replies can be posted.