Skip to main content
Kofax

Kofax TotalAgility - Choice Combobox is displaying the value instead of the text

Applies to

  • TotalAgility 7.6
  • TotalAgility 7.7
  • TotalAgility 7.8

Behaviour

When choice combo boxes are populated via DB actions, under certain conditions the combo box shows the Value instead of the Text.  See the example below.

Before

clipboard_e69425c9996039ee636a6c3ba51cf1992.png

After

 clipboard_e16083410d144435f582ac15ac2739c98.png

The conditions we have seen this occur are below:

  • When forms cache is not being used
  • When forms cache is enabled but the document form is loaded out of the cache e.g. when the browser is stored and the cache is cleared

Explanation

This is due to the fact the document fields are populated via the Load Batch action executed at the activity form level.  The DB actions executing at document form level then overwrite the displayed text with the values.

This is documented as expected behaviour in the KTA help as shown below. 

clipboard_ec54d9a058881eddfa65391d776ffb606.png

Solution

As the Help states, the value needs to be reapplied after the DB queries populate the choice combo box.  To achieve this, the first action on load of the document form should be a Same Page to map the combo box to form variables as shown below.

clipboard_e3203f2a1a78560813510e70de026f189.png

After the DB queries have been executed, these form variables should be mapped back into the combo boxes using a Same Page action.  This will result in the combo box displaying the Text instead of the Value.

clipboard_e152da563dc8240c24e4c2f4175d8968e.png