and more in a single search tool across platforms. Read the announcement here. |
08/31/2022 10:58 PM
we are using update user request form for outsourced user and employees.
Most of our employee has enddate as null until term date is confirmed from HRIS.
For outsourced worker, since business team is adding too much future date, we would like add validation.
${(ContractEndDate-currentdate <= 365)}
it is working as expected when outsourced worker type is selected, however, if employee with null enddate try to request update user. They are getting error like below.
I think this is because they have null in end date. Could you please let me know how to modify the validation to accept enddate = null as well?
Thanks
08/31/2022 11:17 PM
${(null == ContractEndDate && 'Employee'.equals(accountType)) || (null != ContractEndDate && ContractEndDate >= currentdate && 'Contractor'.equals(accountType))}
Here accountType and ContractEndDate are the dynamic attributes.
Follow above syantax