hi,
have a little trouble checking for null on the front end. I have 2 date fields, these fields only get shown if a certain service is selected. So most the time are not shown and null.
the 2nd date field adds 1 month to the first date field (if the first date field is not null. but it ignores this.
I have this code
<input id="StorageFrom" name="StorageFrom" is="dmx-date-picker" type="text" placeholder="Storage From" class="style7" format="YYYY-MM-DD">
<input id="StorageTo" name="StorageTo" is="dmx-date-picker" type="text" placeholder="Storage to" class="style7" format="YYYY-MM-DD" dmx-bind:value="(StorageFrom.value != 'null').addMonths(1)">
but no matter what I do I always get the default date + 1 month (1970-01-01.
Any ideas what I am doing wrong?
thanks