Unable to assign date on program stage

User enters LMP Date and We need to calculate the EDD Date i.e 9 months and 7 days from LMP Date. I have written below expression on the assign page and left the program expression empty. The date is not assigned on the EDD. I need help regarding this issue.

Hi @riwaj.amakomaya

You need to have the expression which will be the trigger so that the program rule will execute the action. If the action needs to happen immediately after the user enters the value then you could use something such as

!d2:hasValue(#{LMP Date})

or I would use #{apgarscore} != ''

1 Like