Solved

Validate task parameter

  • 19 June 2023
  • 2 replies
  • 66 views

Userlevel 1
Badge +1

Hello,

I have a task with one parameter (data type: date) and I want to have a condition on it to be a date smaller than another date from the table. Basically I have in a table 2 dates (a and b) and with the task I want to complete b date and this date to be smaller than a; and the user to not be able to select a date bigger than a. It is possible?

icon

Best answer by Renée Evertzen 20 June 2023, 10:47

View original

This topic has been closed for comments

2 replies

Userlevel 4
Badge +3

Hey Elena,

If you add both date A and date B to the task as a task parameter, with date a just being a task parameter without a table link and date B being a task parameter with a table task parameter link to the correct table column value.

If you have all of that set up, you can write a default for this task and assign it to the task to compare the dates to each other and execute a check that date A has to be smaller than date B.

More information on using Defaults can be found here: https://docs.thinkwisesoftware.com/docs/sf/business_logic#default

Hope this helps!

Userlevel 1
Badge +1

Thank you! It helps :)