Skip to main content
May 18, 2025
Solved

Unexpected Behavior in Text Field Not Saving to Local Variables or Rule Inputs

  • May 18, 2025
  • 6 replies
  • 0 views

We are experiencing an unusual issue in our application running on Appian version 24.4. When users fill out a text field and tab out, the value is not immediately saved to the associated local variables or rule inputs. Interestingly, the value only seems to persist after entering text two or three times.

This behavior is inconsistent and unexpected. Has anyone else encountered this issue or identified a possible root cause? Any suggestions or workarounds would be greatly appreciated.

    Best answer by stefanhelzle0001

    Can you share a minimal code example which shows this behaviour?

    6 replies

    May 19, 2025

    Hi [mention:425e823b60814f408a007f97851c37f6:e9ed411860ed4f2ba0265705b8793d05] 
    1. Is this issue only with text field or any other fields?

    2. Is it happening for all text fields in the interface?

    3. Can you please share sample code to look into 

    May 19, 2025

    Hi [mention:8c78ee4ffe8d41d1b8ca61f1105b4e51:e9ed411860ed4f2ba0265705b8793d05] 

    happing only in textFields. 

    This issue is happening randomly in the text fields of the application.

    a!localVariables(
    local!data:a!map( firstName:null, lastName:null, email:null, country:null, orgName:null, title:null ),
    a!formLayout(
    label: "REGISTER NOW",
    instructions: "Enter your details below to register for the conference",
    contents: {
    a!sectionLayout(
    label: "YOUR DETAILS",
    labelSize: "SMALL",
    labelColor: "STANDARD",
    contents: {
    a!cardLayout(
    contents: {
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!textField(
    label: "First name",
    value: local!data.firstName,
    saveInto: local!data.firstName
    )
    }
    ),
    a!columnLayout(
    contents: {
    a!textField(
    label: "Last name",
    value: local!data.lastName,
    saveInto: local!data.lastName
    )
    }
    )
    }
    ),
    a!textField(
    label: "Email address",
    labelPosition: "ABOVE",
    value: local!data.email,
    saveInto: local!data.email
    ),
    a!dropdownField(
    label: "Country",
    labelPosition: "ABOVE",
    placeholder: "Select your country of residence",
    choiceLabels: {"United States", "United Kingdom", "Canada"},
    choiceValues: {1, 2, 3},
    value: local!data.country,
    saveInto: local!data.country
    ),
    a!textField(
    label: "Organization name",
    labelPosition: "ABOVE",
    value: local!data.orgName,
    saveInto: local!data.orgName
    ),
    a!textField(
    label: "Job title",
    labelPosition: "ABOVE",
    value: local!data.title,
    saveInto: local!data.title
    )
    },
    style: "#f2ede1",
    shape: "SEMI_ROUNDED",
    padding: "STANDARD",
    marginBelow: "STANDARD",
    borderColor: "#d4cebe"
    )
    },
    marginAbove: "STANDARD"
    )
    },
    buttons: a!buttonLayout(
    primaryButtons: {
    a!buttonWidget(
    label: "Register",
    icon: "arrow-right",
    submit: true,
    validate: true,
    style: "SOLID",
    color: "#DEB03D"
    )
    },
    secondaryButtons: {
    a!buttonWidget(
    label: "Cancel",
    submit: true,
    validate: false,
    saveInto: {},
    style: "OUTLINE",
    color: "#000000",
    value: true
    )
    }
    ),

    )
    )

    stefanhelzle0001
    May 19, 2025

    Can you share a minimal code example which shows this behaviour?

    May 19, 2025

    hi [mention:a11f77a729fb4db2af76b09948583328:e9ed411860ed4f2ba0265705b8793d05] 

    This issue is happening randomly in the text fields of the application.

    a!localVariables(
    local!data:a!map( firstName:null, lastName:null, email:null, country:null, orgName:null, title:null ),
    a!formLayout(
    label: "REGISTER NOW",
    instructions: "Enter your details below to register for the conference",
    contents: {
    a!sectionLayout(
    label: "YOUR DETAILS",
    labelSize: "SMALL",
    labelColor: "STANDARD",
    contents: {
    a!cardLayout(
    contents: {
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!textField(
    label: "First name",
    value: local!data.firstName,
    saveInto: local!data.firstName
    )
    }
    ),
    a!columnLayout(
    contents: {
    a!textField(
    label: "Last name",
    value: local!data.lastName,
    saveInto: local!data.lastName
    )
    }
    )
    }
    ),
    a!textField(
    label: "Email address",
    labelPosition: "ABOVE",
    value: local!data.email,
    saveInto: local!data.email
    ),
    a!dropdownField(
    label: "Country",
    labelPosition: "ABOVE",
    placeholder: "Select your country of residence",
    choiceLabels: {"United States", "United Kingdom", "Canada"},
    choiceValues: {1, 2, 3},
    value: local!data.country,
    saveInto: local!data.country
    ),
    a!textField(
    label: "Organization name",
    labelPosition: "ABOVE",
    value: local!data.orgName,
    saveInto: local!data.orgName
    ),
    a!textField(
    label: "Job title",
    labelPosition: "ABOVE",
    value: local!data.title,
    saveInto: local!data.title
    )
    },
    style: "#f2ede1",
    shape: "SEMI_ROUNDED",
    padding: "STANDARD",
    marginBelow: "STANDARD",
    borderColor: "#d4cebe"
    )
    },
    marginAbove: "STANDARD"
    )
    },
    buttons: a!buttonLayout(
    primaryButtons: {
    a!buttonWidget(
    label: "Register",
    icon: "arrow-right",
    submit: true,
    validate: true,
    style: "SOLID",
    color: "#DEB03D"
    )
    },
    secondaryButtons: {
    a!buttonWidget(
    label: "Cancel",
    submit: true,
    validate: false,
    saveInto: {},
    style: "OUTLINE",
    color: "#000000",
    value: true
    )
    }
    ),

    )
    )

    stefanhelzle0001
    May 19, 2025