Announcement

Collapse
No announcement yet.

Form not posting valid "Other" amount

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Form not posting valid "Other" amount

    We designed a contribution form with an "Other" option, where the "Other" button enables a value entry field.
    When submitting the form with an "Other" amount, it is not submitting the value as intended.

    Have tried several modifications to debug but without success. Any thoughts? Thanks.
    Code:
     
     <div class="donation-info">       <h4 class="section-header">Please select a donation amount</h4>       <div class="donation-amount">         <label><input type="radio" name="UnitPrice" id="radio" value="100" data-parsley-required data-parsley-required-message="Please select a donation amount" data-parsley-errors-container="#amount-error" /><span>$100</span></label>          <label><input type="radio" name="UnitPrice" id="radio" value="250" /><span>$250</span></label>          <label><input type="radio" name="UnitPrice" id="radio" value="500" /><span>$500</span></label>          <label><input type="radio" name="UnitPrice" id="radio" value="1000" /><span>$1000</span></label>          <label><input type="radio" name="UnitPrice" id="radio" value="5000" /><span>$5000</span></label>          <label><input type="radio" name="UnitPrice" id="radio" value="Other1" /><span>Other</span></label>          <label class="other">Enter Amount: <input name="Other1" type="text" id="Other1" size="10" disabled data-parsley-required /></label>         <input name="ItemID" type="hidden" id="ItemID" value="1" />         <input name="ItemName" type="hidden" id="ItemName" value="Donation" />         <input name="Quantity" type="hidden" id="Quantity" value="1" />         <input name="UnitDeductible" type="hidden" id="UnitDeductible" value="100%" />       </div>        <div id="amount-error"></div>     </div>
    Validation response:
    Basket Information


    The following are the minimum required fields for an item. At least one item has to be included in the basket.
    Common name FaaS field name Required? Example Posted
    ItemID ItemID YES 1 1
    Item name ItemName YES T-Shirt Donation
    Item quantity Quantity YES 1 1
    Item unit price UnitPrice YES 10 Other1

  • #2
    Good day @olevine

    We reviewed the above code and discovered that you have NOT specified the UnitPrice and ItemID correctly. You will need to change that to UnitPrice1, ItemID1, and Other1 as shown in the manual:

    https://manual.clickandpledge.com/Form-Field-Names.html

    Click image for larger version

Name:	Form Fields.jpg
Views:	1
Size:	99.4 KB
ID:	39467

    Please change that as specified in the manual and test it.
    Regards,
    Click & Pledge Support Department

    On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

    Join us @ the educational webinars: https://clickandpledge.com/webinars/
    Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
    Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

    Comment

    Working...
    X