renderFormControlForObjectField()

Overview

public string function renderFormControlForObjectField(
      required string objectName
    , required string fieldName 
)

Renders a form control suitable for the given object and object field name (property name). Supplied arguments will be passed on to the renderFormControl() method along with the calculated form control type and any other arguments.

Arguments

NameTypeRequiredDescription
objectNamestringYesName of the object whose field you wish to get a form control for
fieldNamestringYesName of the field (property) on the object that you wish to get a form control for