how to allow the user to choose send/not send the form data on each register the

radvla

Member
1?)I have defined a form,one of the fields is one mail.

2?)I want the user have the possibility both to send the data form by cliking a button, or

not send anything if he does not clik.

3?) the buttom must be at the end of the form as the last thing to do before data saving.

How can I do it
 
You can add a radio element or a yes/no element e.g. Send Yes/No and run the email form plugin depending on the setting: in the "Condition" field return false if Send=NO
 
I do not know how yo express the coditin in php or sql.
I defined a radiobuttom

value Label Default

1 Mandar



0 No mandar

I express the condition as:

Return'{prueba_de_mail___e_mail}'== 1

Where "prueba_de_mail" is the name of the table.

how can I say that the form must be mail if e_mail=1
 
I do not know how yo express the coditin in php or sql.
I defined a radiobuttom

value Label  Default

1 Mandar



0 No mandar

I express the condition as:

Return'{prueba_de_mail___e_mail}'== 1

Where "prueba_de_mail" is the name of the table.

how can I say that the form must be mail if e_mail=1
 
Is "e_mail" your radio button element name? Try
return '{prueba_de_mail___e_mail_raw}'== '1';
 
I tryied as you say:
return'{prueba_de_mail___MANDAR_E_MAIL_raw}'=='1' an it does not work.

Can be any problem with blank spaces that should be purge . In quickbasic are purge with rtrim or ltrim .

can you make a suggestion
 
the difference it is just the ";" at then, incredible
Not incredible, just PHP syntax;)

Which code did you put in Attachemens(eval)?
Attachments (eval)::OPTIONAL - PHP code to add attachments. Code just needs to return an array of full path name(s) to desired file(s). Can use placeholders, and/or access form data in $this->data.
 
Nothing, I did not put any code .

The form have a fileupload field , what I want to mail is the same file uploaded when the form is filled, either when is filled the first time or when is modified.

It have worked so in another forms and I do not know why it does not work now in this.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top