I'm trying to trigger a action if between two dates (fields named "date_received" and "date_deadline") the first is more greater than the second date.
The condition that I use is numeric comparison, so if "date_received" is greater than "date_deadline" the content type name "task" can't be created because there is an error in "Set form error on element 'field_date_deadline' " The event that I use for the rule is when "Task node form is being validated".
So here comes my problem, the tokens that I use are not been recognized, In "number 1" field putting token "[node:field_date_received-timestamp]" and in "number 2" putting token "[node:field_date-timestamp]", but none seems to work. I don't know what is the problem, the problem are the tokens probably, I don't know why doesn't work.
I tried too putting only an action with an error message, without any condition for the rule, with a message with the token including "Error in [node:field_date_deadline-value]" but the token doesn't work either.
So, someone has any idea of what is happening? I appreciate any idea
Kind Regards
Post Scriptum: Sorry for any mistake in my english
Comments
Comment #1
begona commentedFinally I found the answer for this using rules, I am going the put the answers here If someone need to do this.
Here the answer!
http://groups.drupal.org/node/25672
Kind regards
Comment #2
klausiMarking as fixed.