• Resolved InventiveWebDesign

    (@inventivewebdesign)


    I want to use Forminator to collect payments for a course a client is giving using PayPal. They want to offer early registration pricing for various dates.

    What I need to do is change the price of the calculation field based on the current date.

    For example, say the event is November 19, 2022. Regular Price is $190.00 I want to offer early registration pricing of $150.00 until November 10, 2022.

    Aside from standard form fields I have:
    1. Hidden Current Date Field with the value of Date (mm/dd/yyyy).
    2. Radio button field with a list of dates (currently just November 19, 2022 and December 19, 2022). Each date has the discount price in the Calculation field.

    I thought what I could do is have the radio button field (R1) that has the discount rates for both events available and another radio button field (R2) with the regular price for the 11/19/22 event (discount on all dates except 11/19/22). Then use the R1 visibility settings to say hide this field after 11/09/2022 and set the R2 visibility settings to say show the R2 field when the current date field is after 11/09/2022. Once I got the first one down I can make additional fields and visibility rules to show/hide fields for each date as the early registration passes.

    My questions are:
    1. Does the Hidden Current Date Field auto populate with the current date or does it only populate after the user clicks submit? If the latter, is there another way to create a field that populates with the current date that I can use for Visibility Conditions?

    2. For visibility settings what condition would I use? Is there a way to say SHOW this field if ALL “Current Date” IS AFTER “11/09/2022”? My options are IS, IS NOT, CONTAINS, STARTS, ENDS. Does STARTS = AFTER and ENDS = BEFORE or vice-versa or will this not work?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @inventivewebdesign

    I hope you are doing well today.

    If I read this correctly for all your conditional logic settings you should rely on the DATE field and SET UP as:
    HIDE | ANY
    DATE field | IS BEFORE
    DATE field | IS AFTER

    With that, you will be able to show the correct other fields. For example:
    you have 2 fields with price and you show/hide them based on the date chosen from the DATE field.

    The same rules you can apply for SUBMIT button. In case after some date this course registration will be not valid and you can simply hide that button.

    =============
    Does the Hidden Current Date Field auto populate with the current date or does it only populate after the user clicks submit? It will check date in fly, so before you click on submit button it will apply all your conditional logic in the fly as well.

    Kind Regards,
    Kris

    Thread Starter InventiveWebDesign

    (@inventivewebdesign)

    I am not sure if I get it. First, I don’t have the options in the Visibility rules for IS BEFORE and IS AFTER, just IS, IS NOT, CONTAINS, STARTS and ENDS.

    I am using the free version of your software, do I have to pay for IS BEFORE and IS AFTER options?

    My Form is currently visible here: https://energybalanceinitiative.com/hello-world/

    In all four of my radio fields I have each set to HIDE this field if ANY (I tried ALL too):

    Each of the 4 fields is set as follows (you can see which field has which rule in their descriptions):
    HIDE if Current Date STARTS with 11/09/2022
    HIDE if Current Date ENDS with 11/09/2022
    HIDE if Current Date IS with 11/11/2022
    HIDE if Current Date IS NOT with 11/11/2022

    The “Current Date” field is Hidden (located at the top of my form) and has the value of 11/11/2022 right now.

    You can see that all four radio button fields are currently showing. The Visibility rule doesn’t seem to matter. Do I have to write the date differently?

    OTHER TESTS

    I thought I should test that the visibility rule works so I added one to the email field that says “HIDE if ANY: First Name IS null”. This works, as long as there is no date in First name the email field is hidden, if there is data it appears.

    I also tested the Phone Number and added HIDE if ANY: Current Date IS with 11/11/2022 (today’s date) but it still shows (thought it may be a radio button problem).

    Please let me know what you think and if there is any way to get this to work.

    Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi again @inventivewebdesign

    Please export your form and upload it to google drive or dropbox and share a link in your next reply so that we could take a closer look at this.

    Kind Regards,
    Kris

    Thread Starter InventiveWebDesign

    (@inventivewebdesign)

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @inventivewebdesign,

    Extremely sorry for the delay in getting back. It seems like we didn’t get a notification regarding this thread and hence the delay.

    I am not sure if I get it. First, I don’t have the options in the Visibility rules for IS BEFORE and IS AFTER, just IS, IS NOT, CONTAINS, STARTS and ENDS.

    This is only visible if you add conditions for the “Datepicker” field.

    Screenshot:

    Screenshot at 16:56:51.png

    It seems like you are using “Radio” fields. It would be better if you use the “Datepicker” field to get the current date, so that you could add conditions for your “Radio” fields based on the dates.

    You can add the “Datepicker” field and set “Default Date” as “Today“:

    Screenshot at 17:00:44.png

    To hide the “Datepicker” field, you can add the following class name inside the “Styling” tab of your “Datepicker” field:
    forminator-hidden

    Screenshot:

    Screenshot at 17:03:49.png

    Please do check and let us know whether the above help with setting up the form further.

    Kind Regards,
    Nithin

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @inventivewebdesign,

    Since we haven’t heard from you for a while. I’ll mark this thread as resolved for now. Please feel free to re-open the thread if you need further assistance.

    Best Regards
    Nithin

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Form that allows for Early Registration Pricing’ is closed to new replies.