Sample script to make certain I/C optional fields mandatory depending on I/C Item fields.
Conditions to be amended in the script.