My colleague Frode Lillerud discovered a way to set UserPreferences of type "FieldMandatory" through VBScript:
set db = CreateObject("SuperOfficeDB.Database")
isOK = db.login("fl", "fl")
If isOK Then
db.preferences.set "FieldMandatory", "contact-orgnr", "1"
This works, and makes the Contact OrgNr field show a red underline if it has no value. It also stops the user from saving.
My question is:
- I am trying to do the same for Sale and its Source field, but have no idea what the protocol/identifier is (equivalent to "contact-orgnr", e.g. "sale-source" which doesn't work). Any ideas or tips on where to find information on this? Or, if someone already knows this, please share!