Livecycle eg required field Setting a field as required at run time
TextField1.validate.nullTest = “error”;
TextField1.mandatory =”error”
TextField1.mandatoryMessage = “this field is mandatory!”

Setting a field as required at run time