User Tools

Site Tools


action:Prompt_With_List

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
action:Prompt_With_List [2018/05/03 09:57]
peternlewis [Prompt With List]
action:Prompt_With_List [2019/03/24 23:47] (current)
peternlewis How to Store a Different Value than Displayed
Line 14: Line 14:
  
 The selected item will be saved back to the source of the list, or to a specified clipboard, variable or file. The selected item will be saved back to the source of the list, or to a specified clipboard, variable or file.
 +
 +==== How to Store a Different Value than Displayed ====
 +
 +If you want to display a “friendly” value as the default value, but store a different value (like a code), you can do this by using a code followed by two underscores (`__`) and then the value, for example:
 +
 +```
 +A__Excellent
 +B__Good
 +C__OK
 +F__Fail
 +```
 +
 +will display a list with Excellent, Good, OK, and Fail, but return a value of A, B, C or F as appropriate.
  
 ===== See Also ===== ===== See Also =====
action/Prompt_With_List.txt · Last modified: 2019/03/24 23:47 by peternlewis