• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
Locked
0

How to Grab email address from webform and insert into form action

Engaged ,
Jan 25, 2014 Jan 25, 2014

Copy link to clipboard

Copied

Please I need help on this: I have a webform that I want its details to be submitted via email. Whcih I got right from bC KnowledgeBase. But on the 'EmailFrom=' line. I want the system to grab  the email address the user provides in the webform and inserts it to the 'EmailFrom='. My use case does not require users to log in since it is an administrator generated content and not  a user-generated content.

Please how is this possible? I need concise practical help. Code assistance will be appreciated. This is my code as it is with the form.

<form name="catwebformform60818" method="post" onsubmit="return checkWholeForm60818(this)"

            enctype="multipart/form-data" action="/FormProcessv2.aspx?A=Form&Email={tag_staff email address}&Subject={tag_name_nolink}&EmailFrom=yourfromemail@YourDomain.comPageID=%2fpricerequestsent.html&OID={module_oid}&OTYPE={module_otype}&OPTIN=true&EID={module_eid}&CID={module_cid}">

                <table class="webform" cellspacing="0" cellpadding="2" border="0">

                    <tr>

                        <td>

                           

                            <input type="text" name="FullName" id="FullName" class="searchweb" maxlength="255"

                            placeholder="Full Name[Required]" />

                        </td>

                    </tr>

                    <tr>

                        <td>

              

                            <input type="text" name="EmailAddress" id="EmailAddress" class="searchweb" maxlength="255"

                            placeholder="Email Address[Required]" />

                        </td>

                    </tr>

                    <tr>

                        <td>{module_ccsecurity}</td>

                    </tr>

                    <tr>

                        <td>

                           

                            <input type="text" name="CellPhone" id="CellPhone" class="searchweb" maxlength="255"

                            placeholder="Phone Number[Required]" />

                        </td>

                    </tr>

                    <tr>

                        <td>

                            <label>Enter Word Verification in box below <span class="req">*</span>

                               

                            </label>

                            <br />{module_captchav2}</td>

                    </tr>

                    <tr style="display:none;">

                        <td>

                            <input type="checkbox" name="CampaignList_1008" />Subscribe to:  Real Estate Blog</td>

                    </tr>

                    <tr style="display:none;">

                        <td>

                            <input type="checkbox" name="CampaignList_998" />Subscribe to: Real News</td>

                    </tr>

                    <tr>

                        <td>

                            <input class="submit" type="submit" value="Submit" id="catwebformbutton" />

                        </td>

                    </tr>

                </table>

                <script type="text/javascript" src="/CatalystScripts/ValidationFunctions.js"></script>

                <script type="text/javascript">

                    //<![CDATA[

                    var submitcount60818 = 0;

                   

                    function checkWholeForm60818(theForm) {

                        var why = "";

                        if (theForm.Fullname) why += isEmpty(theForm.Fullname.value, "Full Name");

                        if (theForm.EmailAddress) why += checkEmail(theForm.EmailAddress.value);

                        if (theForm.CellPhone) why += isEmpty(theForm.CellPhone.value, "Cell Phone Number");

                        if (theForm.CaptchaV2) why += captchaIsInvalid(theForm, "Enter Word Verification in box below", "Please enter the correct Word Verification as seen in the image");

                        if (why != "") {

                            alert(why);

                            return false;

                        }

                        if (submitcount60818 == 0) {

                            submitcount60818++;

                            theForm.submit();

                            return false;

                        } else {

                            alert("Form submission is in progress.");

                            return false;

                        }

                    }

                    //]]>

                </script>

            </form>

TOPICS
How to

Views

4.8K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 21, 2014 Apr 21, 2014

Copy link to clipboard

Copied

Hello topelovely,

I was wondering if you still needed help on this?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 22, 2014 Apr 22, 2014

Copy link to clipboard

Copied

Yes I do. Please my last implementation keeps giving sending back the mail.

With error the email address is not available on the BC system. Whereas the

email address as been properly setup using google services. Looking forward

to your help.

On Mon, Apr 21, 2014 at 11:49 PM, Chad - ChicagoDigital.com <

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 22, 2014 Apr 22, 2014

Copy link to clipboard

Copied

LATEST

To use this service the email needs to be within the admin uses of the site. So you cannot use this feature to send to just any email address. Sounds like you got the jquery to work, now you are just trying to get the errors worked out. So I would first make sure you have an actual admin users email, then see what happens.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines