Announcement

Collapse
No announcement yet.

Terms & Conditions and form validation with FaaS

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

  • Terms & Conditions and form validation with FaaS

    I've created my FaaS form, and have it working reasonably well.

    As a matter of good practice I figured I should set up some form validation. Iím not an expert in javascript or php- so I just used Dreamweaver's tool to set up some client side validation, but I was having problems with setting a mandatory Terms & Conditions checkbox

    FaaS has form validation for the minimum fields. I'm using a WID with required Terms & Conditions, and they are printing with my test receipt as needed. I could not find a Terms & Conditions field available in the examples. Any way to have the Terms & Cnditions field available and set form validation for it?

    thanks, Amanda

  • #2
    Amanda,

    The terms & conditions, as far as the form is concerned, should be based on "I accept" radio button or a checkbox for "I accept"

    Simply make sure a checkbox called Terms is checked before they can click on Submit.

    If you wish to include the T&C on the receipt add it to the Checkout pages and the system will use that T&C in the receipt.

    Let us know if that works for you or we can be of any further assistance.
    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


    • #3
      OK, I placed some client side validation in my form as follows (this for the reference of your other users)- it does not really pass on any relevant values to FaaS, but works for my purposes

      I created a checkbox called "Terms": <input type="checkbox" name="Terms" id="Terms" />

      I added the following code to the submit button: <input name="Subm Donation" type="image" src="images/donatepaw.png" id="Subm Donation" value="Submit Donation" onclick="if(!this.form.Terms.checked){alert('Pleas e check the box to indicate you agree with the terms/conditions');return false}" />

      The WID I used is for an easyPage that includes a mirrored Terms and Conditions for printing on the receipt

      Comment


      • #4
        Good day!

        The idea should work. I really can't tell you if it works or not since we can't offer programming advice for a number reasons.

        Is it working for you?
        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


        • #5
          resolved

          Yes, this appears to be working, I figured posting what I did could help other users. I have moved on to the next challenge, populating the form with the postback info.

          Comment

          Working...
          X