Wappler Version : 4.0.1
Operating System : Windows 10 x64
Server Model: NodeJS
Database Type: PostgreSQL
Hosting Type: Docker
Hello,
I have two date pickers within one form: date created - date valid. I have a pretty much basic scenario: when changing date created value and new value date is after date valid - set valid date value + 2 days of current selected date created value .
Problem is that it adds 2 days only when date different is more then 2 days. I’ve even got checking string which check condition if
form_edit_quotation.edit_quotation_created_date.value > form_edit_quotation.edit_quotation_valid_until.value
is true or false and even it’s true - value won’t change, only when 2 days difference.
Data binding code:
form_edit_quotation.edit_quotation_created_date.value > form_edit_quotation.edit_quotation_valid_until.value ? form_edit_quotation.edit_quotation_created_date.value.addDays(2) : form_edit_quotation.edit_quotation_valid_until.value
I’ve tried both scenarios: on value change and on date picker apply. Both has same scenario.
Last updated: