Need different invoice numbers depending on what program is chosen on form

  • Profile Image
    joanfeldman
    Asked on August 05, 2018 at 09:46 PM

    I created a form that has 3 different program options. I need a different invoice number for each program. For example, Gold should always be YR19, Silver should always be HAB19 and Bronze should always be HAF19 or B619. I have been able to get it to work for all programs when they choose the "member option" but if they choose "non-member" it won't work. I cannot figure out why.

  • Profile Image
    roneet
    Answered on August 06, 2018 at 04:29 AM

    On checking the cloned version of the form. I found that there are multiple similar fields in the form which has made your form very complicated and confusing.

    For example:

    You should choose the below option as Radio button in spite of checkboxes. Since checkboxes allow you multiple selections so when both the condition are selected then I found "BT in the AM: Please select one class per time slot" field is repeating twice in the form. With a single entry of this field also you can hide and show based on your radio button selection. This will minimize your code and you can write conditions properly too

    15335435221.PNG


    In spite of writing condition based on "Are you a Beth Tfiloh Congregation" (Member/ Non- member) you can simply write condition based on the selection of Package option under Gold/Silver/Bronze category as you want to generate different invoice number devoid of the selection of member/non-member.

    For example whenever you select an option under a non-member Gold category --> "Yaffe Scholars, BT in the AM, Fall Semester, Book Club" is Filled

    or

    Under a member Gold category -->"Yaffe Scholars, BT in the AM, Fall Semester, Book Club" is Filled

    This should insert invoice number in the hidden text field as YR19

    15335432611.PNG

    Please let us know if you need further clarification on this. We would happy to assist.

    Thanks.


  • Profile Image
    joanfeldman
    Answered on August 06, 2018 at 08:50 AM

    The reason I did those as multiple choice is because I want people to have the option to click on and off and I was told that with single choice you don't have that option. Also, I need them to choose member/non-member separately so that they don't see the pricing for each other.

  • Profile Image
    joanfeldman
    Answered on August 06, 2018 at 09:53 AM

    I got it to work! Thank you!