The auto-filled data is retained in text field but its throwing the required validation

Certified Senior Developer

Hi, 

In Action forms for few of the text field I'm using the auto filled data (autofill feature existing in browser). So, data is retaining in the text field but it's throwing a required validation. if I re-enter the values manually, required validation is removed.

Any idea on this behavior?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    a!localVariables(
      local!items: { a!map(name: "", email: "") },
      a!cardLayout(
        showBorder: false,
        contents: {
          a!gridLayout(
            headerCells: {
              a!gridLayoutHeaderCell(label: "Name"),
              a!gridLayoutHeaderCell(label: "Email")
            },
            rows: a!forEach(
              items: local!items,
              expression: a!gridRowLayout(
                contents: {
                  a!textField(
                    label: "Name",
                    value: fv!item.name,
                    saveInto: fv!item.name,
                    /*inputPurpose: "NAME",*/
                    required: true
                  ),
                  a!textField(
                    label: "Email",
                    value: fv!item.email,
                    saveInto: fv!item.email,
                    /*inputPurpose: "EMAIL",*/
                    required: true
                  )
                }
              )
            )
          ),
          a!buttonArrayLayout(
            buttons: a!buttonWidget(label: "Submit", validate: true)
          )
        }
      )
    )

    This works fine for me with or without the inputPurpose attribute that is specified.

    - Which version of Appian are you on?

    - Which browser?

  • 0
    Certified Senior Developer
    in reply to Mathieu Drouin

    Hi, it's not the Appian function issue, it's the auto fill (which we use data from browser wallet) feature which we use it in browser in that I'm facing the issue.

Reply Children
  • 0
    Certified Lead Developer
    in reply to Prabhakaran Rajendran

    I fear Appian will not be very supportive of browser auto-fill functionality, at least when it comes to certain corner cases like you've described here.  If you believe the behavior is reproducible and counter to what a user might EVER reasonably expect, however, you might raise a support case with Appian (being sure to describe the exact reproduction conditions) and make them aware at least, in case a minor adjustment to the back-end behavior of the field would improve things.