I want to show a message to user, and it should be disappeared after few second how can i do this
Discussion posts and replies are publicly visible
You can use a combination of textCache plugin with refreshvariable. You can set true in a cache key and set the expiry to 28 seconds. In the next line, you can check the value of that variable in refresh variable and refresh the value of it in 30 seconds (0.5 minute). After the first refresh, the value will be set to null and the message can be hidden by using that variable in the showWhen of it.
text message will disappear in few second
a!localVariables( local!timeFlag: second(now() + second() * 58), local!show: a!refreshVariable( value: second(now()) < local!timeFlag, refreshInterval: 1 ), { a!richTextDisplayField( value: "text will disappear in few seconds", showWhen: not(local!show),
),
})
To note, the refreshInterval setting of 1 equals 1 minute, which is how long the message will stay up in the example above. The current minimum time of a refresh as of Appian 22.4 is 0.5 (30 seconds).
a!refreshVariable