• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Optional email?

Optional email? 16 years 10 months ago #3573

An email address is usually mandatory. In my case, it isn't as somebody could call in to an operator who collects the information through the same form. The caller may not have an email address.

I've added the {email} field to the email address list for a confirmation email. This works just fine when an email is given. But if the field is left blank, I get a server error. So it appears that no internal checking is done on the field, leaving the To destinations messed up.

I'd rather not resort to separate forms and dbs.

What can I do to get around this problem? Can I create a post-script that literally changes the To field?

RSForm Lite, Joomla 1.5.
The administrator has disabled public write access.

Re:Optional email? 16 years 10 months ago #3574

  • dragonjc
  • dragonjc's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 151
Seperate them from the database is not the solution.

Maybe you should do this :
You operator who answer to phone, have just to write the admin adresse, or an adresse realesed for this service.

It's only advantage for you ...

- The operator, have a mail he can print and send on paper to your client, if it is necessary, if it is no, i erase the mail and we don't speak about that ^^.
- Your linke to the database is ok, and you can export your value with excel, for workk with them later.
- And the last advantage, when you export your data you can do statistic, with the email for request ... So you can know howmany guys phone and howmany file was created by your operator. If it is for a society, it is more important ...

Your operator have more work to write the adresse, no problem ... Pre-fille dthem with here account, and all is ok, timle is monney ^^ and it's pro ^^.<br><br>Post edited by: dragonjc, at: 2008/07/03 16:28
Component RS SHow Form in build
The administrator has disabled public write access.

Re:Optional email? 16 years 10 months ago #3576

Thanks for giving it some thought. I've gone into the component, and rather than hack have found this post-script to work:
if (!empty($processform)){
  $form-&gt;emailto = 'admin@domain.com' ;
    if ($processform['email'] != '')
      $form-&gt;emailto .= ',{email}' ;
}

Basically, this alters the emailto parameter depending on whether anything was entered in the form.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!