How can I hide Payment Field in my form?

  • MartyinGammon
    Asked on February 8, 2018 at 5:10 AM

    I have found that the Payment setting field (Field 27) is unreliable with Apple products, so I have created new fields (18-26) and added a calculated field to show total payment due.

    Ideally, I want to hide the unused field (27) so I can keep the data submitted but in the settings for that field there is no Hide option and at the moment I am doing it by using a Condition on the Name field that hides the unwanted field when the name field is populated. Not ideal, as I am sure users will sometimes scroll down to see prices before starting to complete the form.

    Can you help, please?

  • MartyinGammon
    Replied on February 8, 2018 at 5:14 AM

    For clarity: I am expecting to see a Hide Field option on the right here:

    1518084805Hide option missing Screenshot 10


  • TREVON
    Replied on February 8, 2018 at 8:56 AM

    Thank you for the additional clarification.The reason you do not have an option for hiding  the field is because the field is a Payment field. You can however hide the field using conditional Logic that needs to be a triggered immediately the form is loaded like checking if a required field for the payment field to show is empty then it hides the Payment Field since form loads with empty fields by default. Once that fields if filled then the Payment field will display. 

    https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    If you need the field to display for user to pay you will need to also invoke a trigger to display the payment area using conditional logic.

    Kindly do let us know if you need further assistance.

  • MartyinGammon
    Replied on February 8, 2018 at 11:56 AM

    Thanks for your reply.

    The method you suggest is the one I am using at the moment. It is obviously just not ideal that users can see the information until they activate the trigger (filling in the first field on the form).

    I assume that something like an "On Open" or "On Focus" or "On scroll" form event cannot be used as a trigger. Is that correct?

  • David JotForm Support
    Replied on February 8, 2018 at 12:53 PM

    Events cannot be used in forms.  The only types of triggers that can be used are conditional ones.  You could structure the conditions to show the payment field only when the fields you want filled are filled before it is displayed.  It doesn't need to be based on a single field at the beginning of the form.

    If you never want it to be shown, have a show condition based on a field that is hidden in the form.  If field x is filled, show payment field.  Then hide field x.  By default the payment field would be hidden.

  • MartyinGammon
    Replied on February 8, 2018 at 2:11 PM

    Brilliant, David. It's obvious now you have said it!

    For others who may be reading this: I created a Hidden field called Trigger and set a default value of x. I then set a condition: if the value of Trigger is equal to x, the payment field I wanted hidden is set to Hide.

    In this way, no one ever sees the Trigger field and the payment field is never seen but the data already collected is still in the submissions.

  • David JotForm Support
    Replied on February 8, 2018 at 2:22 PM

    This works with a show condition as well.  If a field is shown conditionally, it will be hidden until the condition is met.  Could just do a simple if x is filled show payment field.