Hide notify e-mail
Posted: 22 October 2007 02:08 PM   [ Ignore ]
Newbie
Rank
Total Posts:  10
Joined  2007-10-22

Is there a way to not show the notify address in the code? I’m assuming that’s how the recipient of the e-mail is defined.

I’ve also got a dropdown with a list of possible recipients for the contact form, can FreeForm handle that?

Profile
 
 
Posted: 22 October 2007 04:07 PM   [ Ignore ]   [ # 1 ]
Member
Avatar
RankRankRank
Total Posts:  65
Joined  2005-03-31

Actually, these are related:

The notification address does not appear in the page’s HTML code.  This protects the address from spam.

Because of this, you cannot currently specify the email address in a dropdown—because the email address is encoded at the time the form is generated.

TTFN
Travis

Profile
 
 
Posted: 23 October 2007 05:58 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  10
Joined  2007-10-22

The way I was hoping to do it is something like this:

{exp:weblog:entries weblog="staff" orderby="title" sort="asc"}
<option value="{url_title}" {if url_title == segment_3}selected="selected"{/if}>{title}</option>
{/exp:weblog:entries} 

And then have something where it grabs the e-mail associated with the url_title.

Profile
 
 
Posted: 23 October 2007 09:12 AM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  10
Joined  2007-10-22

Is anything like the above even remotely possible with how freeform is currently set up?

Profile
 
 
Posted: 23 October 2007 11:54 AM   [ Ignore ]   [ # 4 ]
Member
Avatar
RankRankRank
Total Posts:  65
Joined  2005-03-31

As far as I know, no.

(Side note: you can’t have “@“ signs in the url_title field, either.)

TTFN
Travis

Profile
 
 
Posted: 17 December 2007 07:57 AM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  10
Joined  2007-10-22

Bumping this back up to the top…

I figured out how to do this via EE’s contact_form module, but FreeForm is much more flexible when it comes to custom fields and I would prefer to use it instead.

This is what I have to run it through EE:

<select name="recipients" id="recipients">
{exp:weblog:entries weblog="staff" orderby="title" sort="asc"}
    
<option value="<?php echo base64_encode('{staff_email}'); ?>" {if url_title == segment_4}selected="selected"{/if}>{title}</option>
{/exp:weblog:entries}
    
</select

Does Freeform still not cover this functionality provided by the contact_form module in EE?

Profile
 
 
Posted: 20 December 2007 10:54 AM   [ Ignore ]   [ # 6 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

I think the trouble was the @ character in the URL_Title field

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 21 December 2007 08:21 AM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  10
Joined  2007-10-22

Right, that was the original issue and as I look at it, maybe I should’ve created a new topic for this.

All I’m asking about now is id the user of the form can select the recipient from a dropdown as in the exp:contact_form module.

Profile
 
 
Posted: 21 December 2007 11:30 AM   [ Ignore ]   [ # 8 ]
Administrator
Rank
Total Posts:  16
Joined  2005-12-12

Lifeboat, I’ve had trouble getting Freeform to get weblog entries tag data within the Freeform tags in the past and ended up using the EE contact form - but it might work with an embed.  I wasn’t real hip to embeds at the time and didn’t think to try it.

Profile