10 years ago
Topic

Hi!

I have a problem with an email send field. 
I have a registration form, and this form is used to edit user data as well.
I had to add some javascript to the form, as the user had extra needs, so I have fount it easier to create a template and there I could style and add my javascript. 
So I display the form with a custom template. 
I also have an email sent field. 
But I want the emails to go out only when a user registers, not when he just edit his profile. So, I have an if statement:

if(!$userid){

<?php echo $cck->renderField('email_send'); ?>

}

I would assume, that the email send field is not there (I can not see it in the code when I check the source with ctrl-u) but the email is still being sent even if a user edit his profile. 
How can I use this field to send emails only when a user registers?
Thnak you!

Get a Book for SEBLOD
572 Posts
_jrmo
10 years ago
1
Level 1

Hi Milli05,

This is possible with the core features of SEBLOD - you don't need to do it in your template.

In your Site Form for your user registration, click on the "4" button, and then for your Email Send field, select "Restriction > Workflow". After that, click the + and change the Action to "add".

Voila. :)

10 years ago
0
Level 2

Hi _jrmo!


Thanks, it works ok now!

Get a VIP membership