Buy Now
Sign in

Avoid double values

Giada992 , November 08 at 11:03
G
Giada992
Good morning,​
​I am attaching what I did but unfortunately I can not make sure that if the email is already present does not save the data and does not download the file while if the email is not present save the data and download the file.​
​Before downloading the file in any case and save the email, I must add the check that if there is already the email does not download the file and exit the message "Email already present."​
​​
​How do I solve?Immagine1.png
GreyHead
Hi Giada992 ,
Your Read Data action should be checking if the email is found. What settings do you have for that action.
Adding a Debugger action temporarily will help you see what data is being submitted and how it is being treated. You will need to remove the ReDirect action (or put a Stopper action before it ) to see this output in case of 'success'.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
G
Giada992
Hi, Thank you for answering me so fast.​
​then I tried to follow the guide of icagenda.it, but I do not find all the settings that are in the guide.​
​Can you explain how to do it?
Immagine2.png
Attachments
Immagine2.png
Immagine2.png
(53.9 KiB)
73 Downloads/Views
GreyHead
Hi Giada992,
That is code for CFv5 - for CFv6 pleas check page 21 of the CFv6 manual - it will be something like Data42.email:{data:email} (and no <?php ?> tags}
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
G
Giada992
perfect! now that works what did you say about removing the redirect?
G
Giada992
when the email is not present it saves the data and downloads the file but remains the loading wheel that runs as I do to send it back to the home?
GreyHead
Hi Giada992 ,
If you have the TCPDF action set to automatically download the file then ChronoForms looses control at that point so the Actions after the TCPDF action are not run.
I suggest that instead you save the TCPDF file to the server and then show a 'Thank You' page including a download link for the file. That way you keep control of the acton flow.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
G
Giada992
how?
G
Giada992
in fact I can do both as you say and send an email with attachment? how can I do?
GreyHead
HI Giada992,
Please see this thread.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much