Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Arie 224 posts 675 karma points
    Feb 03, 2013 @ 00:46
    Arie
    0

    Doc2Form - value from dropdown not included in e-mail

    I've got a Doc2Form form with a dropdown that's generated by a Razor script. The form displays just fine (including the items in the dropdown), but when I receive the form data in e-mail the value from the dropdown isn't included (the name of the dropdown is in the message, though).

    Razor:

    @{    

    <select>

    <option selected="selected" value="none selected">select a company...</option>

    @foreach (var node in Model.AncestorOrSelf().LineCardIndex.First().Children)

    {

    <option value="@node.contentPageHeader">@node.GetProperty("contentPageHeader")</option>

    }

    </select>

    }

    The HTML of the form seems fine. Here's the part that includes the <select> as generated by the Razor code:

     

    <li class="textbox rfiFormEmail_li">
    <label for="ContentPlaceHolderDefault_mainContent_ctl01_Doc2Form_7_rfiFormEmail">
    E-mail
    </label>
    <input name="ctl00$ctl00$ctl00$ContentPlaceHolderDefault$mainContent$ctl01$Doc2Form_7$rfiFormEmail" type="text" id="ContentPlaceHolderDefault_mainContent_ctl01_Doc2Form_7_rfiFormEmail" class="umbEditorTextField" />
    <span id="ContentPlaceHolderDefault_mainContent_ctl01_Doc2Form_7_rfiFormEmail_REV" style="display:none;">
    </span>
    </li>
    <li class="ucomponents:rendermacro rfiFormProductList_li">
    <label for="ContentPlaceHolderDefault_mainContent_ctl01_Doc2Form_7_rfiFormProductList">
    Product
    </label>
    <div id="ContentPlaceHolderDefault_mainContent_ctl01_Doc2Form_7_rfiFormProductList">
    <select>
    <option selected="selected" value="none selected">select a company...</option>
    <option value="CBI Electric">CBI Electric</option>
    <option value="Challenge Elect.">Challenge Elect.</option>
    <option value="Dean Technology">Dean Technology</option>
    <option value="dgseals">dgseals</option>
    <option value="EOS">EOS</option>
    <option value="Fuji Electric Corp">Fuji Electric Corp</option>
    <option value="Harvatek Tech.">Harvatek Tech.</option>
    <option value="METZ Connect">METZ Connect</option>
    <option value="Picker Components">Picker Components</option>
    <option value="POWERTIP">POWERTIP</option>
    <option value="SEMICOA">SEMICOA</option>
    <option value="Surge Components">Surge Components</option>
    <option value="TE/Corcom Filters">TE/Corcom Filters</option>
    <option value="Vox Power">Vox Power</option>
    </select>
    </div>
    </li>

     

    From the e-mail message:

    --------------------------------------------------------
    E-mail                                  : [email protected]
    --------------------------------------------------------
    Product:
    --------------------------------------------------------

    Any ideas why the value from the dropdown never makes it into the e-mail message?

    PS: I'm not seeing any errors in the debug trace.

     

     

     

     

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft