cancel
Showing results for 
Search instead for 
Did you mean: 

Add item to a select in Unity Form

Rich_Ruiz
Champ in-the-making
Champ in-the-making

Anybody know of a way to add options to a select list using a Hyland.Unity.UnityForm.FormModifier. I can add items to a repeater but that does work for my needs.Doesn't seem to be a way to use an external data to populate it based on another field.

 

 

1 REPLY 1

Not applicable

Hi Rich -

The FormModifier is meant to modify form values rather than the form template or selectable values.

In OnBase 13, we introduced a new type of Unity Script IExternalKeywordDataSetScript. External keyword datasets can now be configured to execute a Unity Script of this type to populate its data.

For a Unity Form only, the arguments for the script will contain the related keyword records as they are currently entered on the form. Here are the implementation details of the arguments for OnBase 13:

Argument type: ExternalKeywordDataSetEventArgs

Property with related keywords: args.SearchParameters.RelatedKeywordRecords

  • Available only for a UnityForm.
  • Contains current rather than stored values. 
  • If the current KeywordDataSet is a SingleInstanceKeywordRecord this list will contain all KeywordRecords on the UnityForm, including MultiInstanceKeywordGroup KeywordRecords. 
  • If the current KeywordDataSet is part of a MultiInstanceKeywordGroup this list will contain that KeywordRecord and all SingleInstanceKeywordRecords on the UnityForm.

Thank you,

Alicia