Forum Replies Created
Hi Ally, you’re right, I just changed the code and it works.
can I add a field where price will be calculated based on different conditions?
Ex. If age of vehicle is that (taken from field), and type is that (another field), then give this price (in a field). That’s just an example, I need to use more variables.
Hi Ally, I know it’s been a while,but I just tried to implement the code and it won’t work, if I’m not missing something.
Please have a look at the current form and image attached:
When I choose 2015 for example, I need the code to calculate (current year -2015) and give the years at the hidden field.
Then I’ll use with other variables to calculate if it’s too old and show a text note.
At this stage, that calculation is not happening.
Am I doing something wrong?
Attachments:You must be logged in to view attached files.
the values will be years (when the vehicle was purchased), starting from the current year (2020) and back to 25 years (1995) and a value which represents any year before 1995.
but how can I keep the current date relevant and always subtract the year the user chose (dropdown) from the current day with the logic fields?
Thanks for the response.
Is it possible instead of a date picker, to put a dropdown where user can choose the date of purchase up to 25 years and >25) and automatically do the same calculations based on the current date?
Same rules as per my prior message, in that case and put that in an hidden field.
Thanks in advance.