Hi!
In the Appian Designer, we have interfaces with text fields that save into rule inputs or local variables.
When entering in data into each of these text fields, the data is only sometimes saved in the rule inputs or the local variables.
Why is the user input not saving all of the time?
Has anyone encountered this issue before?
Below is an example with four text fields. Text1 and Text2 save into rule inputs ri!text1 and ri!text2 both of type text. Text3 and Text4 save into local!text3 and local!text4. User input is not saved every time the value changes.
a!localVariables( local!text3, local!text4, { a!textField( label: "Text1", labelPosition: "ABOVE", value: ri!text1, saveInto: {ri!text1}, refreshAfter: "UNFOCUS", validations: {} ), a!textField( label: "Text2", labelPosition: "ABOVE", value: ri!text2, saveInto: {ri!text2}, refreshAfter: "UNFOCUS", validations: {} ), a!textField( label: "Text3", labelPosition: "ABOVE", value: local!text3, saveInto: {local!text3}, refreshAfter: "UNFOCUS", validations: {} ), a!textField( label: "Text4", labelPosition: "ABOVE", value: local!text4, saveInto: {local!text4}, refreshAfter: "UNFOCUS", validations: {} ) } )
Discussion posts and replies are publicly visible
Hi AshleyS ,I have used your code to check the issue by implementing the flow, and it is working fine for me. You mentioned that you created ruleInput as a text datatype. Can you please recheck and confirm whether you have mapped it to the correct variables in the userInput task? Because there is no issue with your code.
ruleInput
Hi gayatria0439,
I did create two rule inputs ri!text1 and ri!text2. I rechecked and they are both correctly set to type text. This is a stand alone interface so it is not mapped to a process model's userInput task. I checked other interfaces encountering this problem, and their datatypes are set and are mapped properly to userInput tasks. This issue is also happening for local variables text3 and text4 as well as the rule inputs text1 and text2.
I tried my above code in the Appian Community addition which is running Appian Version 25.1. In this version I did see the code working as expected. Clicking or tabbing through each text field kept every user value as expected. However, in the version I'm using 24.2.392.0, it is not keeping user values when clicking or when tabbing through the text fields. Could this issue be due to a difference in versions?
Additionally, we're seeing a warning in the Dev Console (F12 in browser) stating: Component with cId: xyz tried to issue a reevaluation request while unfocused.
In 15 years, I have never seen such behaviour. I suggest to open a support case with Appian.