Hello everyone
My requirement is when loading a page there should be a default values in pickerFieldCustom. And also should i have to change the values afterwords. Values for pickerFieldCustom will be a user values. Can anyone help me on this
Discussion posts and replies are publicly visible
Hi, you can use local variables to provide value for your picker.configure your value field something like below,
a!pickerFieldCustom(
value: if(
a!isNullOrEmpty (ri!your input),
local!defaultvalue,
ri!your input
)
In this I am getting those values as default but I am not able to change those values afterwards. Can you help me with that
Deselect the default value and then select new value. Configure your saveInto parameter to save newly selected value.
selectedLabels: if(a!isNullOrEmpty( ri!abc123_txt ),local!defaultvalue, ri!abc123_txt ) ), value: if(a!isNullOrEmpty( ri!abc123_txt ),local!defaultvalue, ri!abc123_txt ), saveInto: if(a!isNullOrEmpty( ri!abc123_txt ), local!defaultvalue, ri!abc123_txt ),
This is the code I have written in pickerfieldcustom
Using logic on the "value" parameter can be difficult to troubleshoot - an alternate to this is to set your value and saveInto as a local variable, and then transfer the value into your corresponding rule input on save.
See an example post I recently made that does this:
community.appian.com/.../save-default-values-for-radio-button