Buy Now
Sign in

Avoid double values

Giada992 , November 08 2018
G
Giada992 6
November 08 2018 #381384
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 63.4
November 08 2018 #381385
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 6
November 08 2018 #381386
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)
119 Downloads/Views
GreyHead 63.4
November 08 2018 #381387
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 6
November 08 2018 #381388
perfect! now that works what did you say about removing the redirect?
G
Giada992 6
November 08 2018 #381389
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 63.4
November 08 2018 #381392
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 6
November 08 2018 #381396
how?
G
Giada992 6
November 08 2018 #381397
in fact I can do both as you say and send an email with attachment? how can I do?
GreyHead 63.4
November 10 2018 #381432
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