Disabling Fields

How would a disable some fields based on a user selecting a value from another field?

You can add some codes in the ‘active’ method of the form’s datasource, and maybe the ‘modified’ method of the field in the datasource.

Hi Make a method that sets your fields to editable based on values. Call this method from the modified methods of the fields in the datasource you want to make the disabling from.

Hi Here is a short example, hope it will be easier for you, Kchle. in this method I set 4 fields on a form, according to checkbox named: WorkCondition void TurnOnOff() { if (PPLPositionTable.WorkCondition) { Section.enabled(true); Position.enabled(true); Point.enabled(true); Appendage.enabled(true); } else { PPLPositionTable.Section = ‘’; section.update(); PPLPositionTable.Position = ‘’; Position.update(); PPLPositionTable.Point = ‘’; Point.update(); PPLPositionTable.Appendage = ‘’; Appendage.update(); Section.enabled(false); Position.enabled(false); Point.enabled(false); Appendage.enabled(false); } } this method is called from the field ‘WorkCondition’ : public void Modified() { super(); element.TurnOnOff(); } Slawek

Thanks for the help. [:D] Works like a charm.