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