You are currently reviewing an older revision of this page.
When refreshAfter="UNFOCUS" and a button is pressed without unfocusing the input field, the button confirmMessage does not display properly based on the last inputted value.
refreshAfter="UNFOCUS"
confirmMessage evaluations complete before input field re-evaluation when refreshAfter="UNFOCUS", so this behavior is expected.
Set refreshAfter="KEYPRESS" to ensure that the input field is evaluated before the confirmation message.
refreshAfter="KEYPRESS"
An enhancement request to change this evaluation order has been submitted under product use case #944.
If refreshAfter="KEYPRESS" cannot be used, it may be possible to set a conditional refreshAfter based on the use case. For example, if the confirm message is conditional on a null input value, then the following refreshAfter settings may be appropriate: refreshAfter: if(isnull(local!saveIntoVar), "KEYPRESS", "UNFOCUS").
refreshAfter: if(isnull(local!saveIntoVar), "KEYPRESS", "UNFOCUS")
This article applies to all versions of Appian.
Last Reviewed: June 2019