Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

Static Value in text field in saving in other variable

Hi all,

I Need to display static value in the text field and same value should save into one more variable ,

Please advise.

load(
local!getTexfieldValue,

{
a!textField(
value: "abc",

saveInto:
{

a!save(local!getTexfieldValue,save!value)
},
),
a!textField(
value: local!getTexfieldValue,
)
}
)

Regards

Pallavi N

  Discussion posts and replies are publicly visible

Parents Reply
  • Yes that's right, you can save that way but this will work only if the user types in text field.

    If you are not sure if the user will do that then you can directly load the vale as Chandrasekar adviced as below:

    load(
    local!value: "Static Value",
    local!getTexfieldValue: local!value,
    a!textField(
    label: local!getTexfieldValue/* Added here to see the reflection, remove it*/,
    value: local!value,
    saveInto: {
    local!value,
    /* Below save into will save the new value of local!value if user interacts or change the value by tying into text field*/
    a!save(local!getTexfieldValue, save!value)
    }
    )
    )



Children