Modal Value (Expression) — DiSky
Addon: DiSky · Category: Expression · Since: 5.0.0-a1
Syntax
[the] [modal] value[s] of [the] (component|input|text[( |-)]input|drop[( |-)]down|entity drop[( |-)]down|radio group|checkbox group|checkbox|file upload [input]|upload) [with [the] id] %text%Description
What the user submitted in a modal, by the id of the component. A text input gives its text; a dropdown, a radio group or a checkbox group give the selected values; a checkbox gives true or false; an entity dropdown gives the picked users, roles or channels ('selected entities of'); a file upload input gives the uploaded attachments ('uploaded files of').
Examples
on modal received:
if received id is "feedback":
reply with hidden "Thanks for: %value of text input with id "body"%"
broadcast "%values of checkbox group with id "topics"%"
if value of checkbox with id "agree" is true:
broadcast "%uploaded files of file upload with id "proof"%"