How to create a date threshold on the VI_Edit_Date module in Web Portal

Hi,

I need to configure the Web Portal so that when filling in the EntryDate and ExitDate fields in a request, the ExitDate must be at least 2 days after today and no more than 6 months ahead.
This is to prevent errors during identity creation caused by invalid contract date ranges.

I understand that I need to customize the VI_Edit_Date module to implement this logic. However, I’m having trouble using the condition wizard — I get the message:
"The condition wizard cannot be used. The expression is either too complex or there are no limited values defined."

Additionally, I’d like to confirm:
If I clone the object, apply my modifications, and create a substitution rule, will it affect all instances where this module is used across the portal?

Any help or guidance would be greatly appreciated.