I want when a specific product is selected that field becomes mandatory when it`s a different product the field is not mandatory. how can I achieve this?
This will show red cross on field
1. Create global boolean variable. Example: FieldMandatory
2. on page in ShowMandatory property of field set variable "FieldMandatory"
3. On OnOpenPage trigger:
IF SomeCase THEN
FieldMandatory := TRUE
ELSE
FieldMandatory := FALSE;
This will check field:
1. On On ClosePage trigger
IF SomeCase THEN
TESTFIELD(Field);
This will show red cross on field
1. Create global boolean variable. Example: FieldMandatory
2. on page in ShowMandatory property of field set variable "FieldMandatory"
3. On OnOpenPage trigger:
IF SomeCase THEN
FieldMandatory := TRUE
ELSE
FieldMandatory := FALSE;
This will check field:
1. On On ClosePage trigger
IF SomeCase THEN
TESTFIELD(Field);
Answers
NAV version?
in standard you can use ShowMandatory property. Add Variable to this property
Also you can add some check code on page for checking field before closing page(Form)
1. Create global boolean variable. Example: FieldMandatory
2. on page in ShowMandatory property of field set variable "FieldMandatory"
3. On OnOpenPage trigger:
IF SomeCase THEN
FieldMandatory := TRUE
ELSE
FieldMandatory := FALSE;
This will check field:
1. On On ClosePage trigger
IF SomeCase THEN
TESTFIELD(Field);
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!