Calculate Eelement Not Changing

Status
Not open for further replies.
Folks

I have a date element in my form and I want the calc element to calculate 2 months ahead but it does not appear to be working

If you look at this short video it will describe the settings I have (Sorry you need to scroll up and down to watch where the mouse is)

http://screencast.com/t/oFBrkwsL

To see it live please use this link - (You need to login using demo as username and password and the tab I am working on is the certificates required tab)

http://www.lettingagentsupportklub.co.uk/j3/component/fabrik/form/53/42.html?Itemid=

Thanks as always for your help
 
Hey,

If you have 01/01/1970, it means in your case that php didn't get the numbers he wanted to make your mktime function work and he set it to "default".

In the first screencast, your code was like : "___properties_some_stuff", but when you checked the source code, your element was named "properties___poperties_some_stuff". Did you try to add the "properties" before the 3 underscores in your calculation script ?

:)
 
  • Like
Reactions: rob
Even if your code is correct, did you try without the mktime function to see if the calculation could get your elements' values ?

Like just : return '{___properties_some_stuff}';

If yes, what did you get ?
 
Np ! Yes, this is what I meant. Just to see if the calc element gets your element's value and what is returned.
 
There is a wiki on dates in calcs, and several forum threads. I am sure you will find what you need there.
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top