Skip to main content

Good morning,

I have a small problem with the DateDiffDay function.

we have create a short form with 2 Date-Fields and a Remember (True/False)

On my picture you see the rule/form-generator and my rule.

I want to set the Remember is disabled when the Startdate and Enddate smaller is dann 4 Days.

what have i do wrong on that?

thanks Lars

Hi Lars

formula seemed to be ok. Can You renew the control references so formula looks like:

Kind regards

Manfred


Hi Lars,

I can reproduce your issue until I add a Calculated value control called DaysNumber with

dateDiffDays(StartDate, EndDate)

and then use the condition

DaysNumber < 4

Hope this helps,

Christophe


Hello Christophe,

I have add the Calculated value, but it looks like the same.

on the preview I see nothing on that control and nothing with my rule...

value control.png


Hi Lars,

I must admit that it did not work the first time in the preview.

After playing a while, I decided to link the Calculated column to a number column

So I have Published the form once again and tried with a new item without success.

Then I Edit an item and it worked.

I came back to the preview mode and then it was working.

In my experience, it is not the first time that the Calculated column does not fire the first time. I believe it is the same for the rule.

Do you see, at least, the difference of number calculated?

Good luck,

Christophe


Reply