Hi all,
Can anyone please suggest me how to verify default values on the page load?
|verify field | --> this keyword is not working
Discussion posts and replies are publicly visible
What you can do is establish a local variable to store a default value to be displayed (that is included in the array used for 'choiceValues') so when you load your page the first time it will be showing a value selected by default. Hope this example can explain better what I said:
load(
local!defaultValue:2, /* Here you set the default value you want to display */
{
a!dropdownField(
label: "Prueba",
choiceLabels: {
"Choice 1",
"Choice 2",
"Choice 3",
"Choice 4"
},
choiceValues: {
1,
2,
3,
4
value: local!defaultValue,
placeholderLabel: "Any",
saveInto: local!defaultValue
),
a!richTextDisplayField( /* This is just to display local variable */
value: a!richTextItem(
text: local!defaultValue
)
}