Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block

def component = getFieldByName("Component/s"getFieldById(fieldChanged)
if((component.getValue() as Collection).size() > 1) {
    component.setError("Component只能选择一个")
} else {
    component.setValid(true)
    component.clearError() 
}