Page tree

Versions Compared

Key

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

...

attributevalues
namethe name of the custom state
option

icon - font awesome class of an iconĀ (ex: "fas fa-exclamation-triangle")

Examples:

Getting a field to test. Ex: selfdesc field from offerheaderdata form.

...



Code Block
languagejs
titleExample
// get a field, like the selfdesc field from offerheaderdata form.
var field1 = akioma.root.dynObject.getObject('offerheaderdata').getField('selfdesc')

...

Code Block
titleAdd a custom state with an alert icon

// add a custom state to that field, with an alert icon
field1.controller.setCustomState('Alert1', {icon: 'fas fa-exclamation-triangle'})
Code Block
titleRemove a custom state

// remove the custom state from that field
field1.controller.clearCustomState('Alert1')

...