Make Attribute as Required in Service Offerings
Krishnan_v 270000VJ9H Comments (2) Visits (6662)
Make an offering field mandatory depending on the value in some other field.
Lets take two attr
ALNVALUE2 should be mandatory when ALNV
Associate a validation script to the offering attribute.
In 'System Configuration -> Platform Configuration-> Automation Scripts', click on action Create -> Script from ‘More Actions’.
The script is created with the following details:
from psdi.mbo import MboConstants
from psdi.util import MXAp
from psdi.mbo import MboConstants;
from psdi.mbo import Mbo;
from java.lang import String;
if (val1 == 'Yes') :
rc = 1
The automation script is created as shown below:
As you can see from the above screen shot the validation script is attached to INPUT1 and the attribute INPUT2 becomes mandatory when the attribute value of INPUT1 is set to 'Yes'.