• Resolved alexander2021

    (@alexander2021)


    Hi guys,

    I am trying to see if your awesome plugin can help me with the following:

    1. I need to calculate the difference between two date picker entries. For example: first date of use is April 4th, last day of use is April 6th so the outcome should be three (days of use).

    2. I need to be able to apply some kind of Vlookup (numbers/Excel) functionality to be able to caclulate pricing according to a pricing scale. For example: three days is not three times the price of one day, it is two time the price of one day. Two days of use is not two times the price of one day, it is 1.5 times the price of one day. This list can go up to 365 days. Is there a clear way to integrate this in your plug-in?

    Thanks in advance.

    Alexander

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @alexander2021 ,

    1. I need to calculate the difference between two date picker entries. For example: first date of use is April 4th, last day of use is April 6th so the outcome should be three (days of use).

    I’m afraid that is not possible – date picker values can’t be used in the calculation field.

    At the moment calculation field in our plugin allows basic formulas and there are no options to use conditions in it.

    kind regards,
    Kasia

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @alexander2021

    I hope you are doing well and safe!

    We haven’t heard from you in a while, I’ll mark this thread as resolved.

    Feel free to let us know if you have any additional question or problem.

    Best Regards
    Patrick Freitas

    Thread Starter alexander2021

    (@alexander2021)

    Hi Patrick,

    You are right, sorry. Actually the guy from the service sale desk told me that it is possible to do what I want, but some tricks are needed. I think his name was Alex…

    Thread Starter alexander2021

    (@alexander2021)

    HI Patrick,

    I’ve worked my way around this, so I am happy. Well almost.

    I have an auto-populate issue I need some help with now. I have these two fields. One is called audioguides and the other one is called headphones. I want the headphones field to be auto-populated with the number that is being filled in in the audioguides field on the same page. For example if someone needs 45 audioguides the headphone field should be auto-populated with 45 (after which the visitors should be able to change this of course.

    Can you give me some pointers on this matter. I can’t seem to get it working with the available documentation. I do not know what to fill in in the query_parameter_key field.

    Thanks again, Alexander

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @alexander2021

    I hope you are doing well.

    It has some different ways to work on this, so let me check on how the solutions would fit here.

    If you would like to update one field on the fly based on another field you will need to use JavaScript for this.

    https://stackoverflow.com/questions/7609130/set-the-value-of-an-input-field

    In case you send the data from one page to another page you can use the query parameter and the URL:
    https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#pre-populate-form-field-values

    For data from the database the Forminator has some hooks that you can use to replace the empty values to pre-populated strings.

    Let us know which would be your case.
    Best Regards
    Patrick Freitas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Rental calculations (dates and pricing scale)’ is closed to new replies.