We have a requirement to make a selection of attributes required at a certain stage in the Quote Process.
We can achieve this using a linked item and constraints but we have a high number of the attributes.
Is there a feature or a solution that we can think of that can achieve this like.
We have an attribute and we would like it be be optional when the Quote is 5 days from Created date. But after the the 10th day the attrbute is required.
This could be achieved with a linked item and also a constraint. But can we do this with another solution.
You could achieve this in two ways..
1. Using 'Required' Field User Property
Setting this property to TRUE, made the field mandatory while saving the record by evaluating the expression..
Create a calculated field with following value
Calculate Field Name : Calc
Calculated field value: IIf((Today() - [Created]) >= 5, 'Y', 'N') and see..
if (this.GetFieldValue("Calc") == "Y")
TheApplication().RaiseErrorText("Field is a mandatory field");