// Get the form name
var jsForm= solutionModel.getForm(<formName>);
// Get the field by passing the name of the field
var jsField = jsForm.getField('<fieldName>');
// Check the display type
if(jsField .displayType === JSField.TEXT_FIELD) {
// Set the Display type
jsField .displayType = JSField.COMBOBOX;
}
//Recreate the UI
controller.recreateUI();
sovanm wrote:
- Code: Select all
// Get the field by passing the name of the field
var jsField = jsForm.getField('<fieldName>');
Users browsing this forum: No registered users and 9 guests