Hi,
Required fields are stored in this array:
spjs.dffs.data.requiredFields
and you can push in new fields like this
// Push new required field into array
spjs.dffs.data.requiredFields.push("YourFieldName");
// Show star on all required fields
spjs.dffs.starRequired();
If you need to remove a field from the array, you can use this function:
spjs.dffs.data.requiredFields = spjs.dffs.removeFromArr(spjs.dffs.data.requiredFields,"YourFieldName");
Alexander