Requirement: How to implement a logic similar to the refreshAfter field in a!dateField as we do for a!textField? We would like the page to refresh when the DOB field is clicked again, and a different date is selected.
refreshAfter
a!dateField
a!textField
a!dateField( label: "DOB", labelPosition: "ABOVE", value: ri!input.dob, saveInto: ri!input.dob, showWhen: cons!PARAMETER[2] = tostring(local!input), required: true),a!textField( label: "Address Line 1", labelPosition: "ABOVE", placeholder: "Enter Text ...", value: ri!input.addressLine1, saveInto: ri!input.addressLine1, refreshAfter: "KEYPRESS", showWhen: cons!PARAMETER[2] = tostring(local!input))
Discussion posts and replies are publicly visible
What exactly do you mean with "page refresh"?
As soon as I change the value of a date field, it evaluates the saveInto and I can do things. What exactly are you looking for?
We have an application with a search feature that allows users to search by Name and Date of Birth (DOB).
In the first step, I searched using the Name and DOB field and got some results. Now, I'm working with a different record, and this time I started by selecting the DOB field.
The requirement is: as soon as the user clicks or changes the DOB field, the previous search results should be cleared automatically.
For text fields like Name, we can use refreshAfter: "KEYPRESS" to trigger changes immediately. But for date fields, there's no such parameter.
refreshAfter: "KEYPRESS"
I need suggestions on how to achieve the same "auto-clear" behavior for a date field when it's clicked or changed.
Appian will evaluate any logic as the user changed the value in the DOB field. A click alone does nothing. And this behaviour cannot be changed.