question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Options Attribute for Multiple-choice Property

See original GitHub issue

Is there currently a way to indicate that an Activity property supports multiple simultaneous values from a list of fixed options? For example, the Elsa.Attributes.SelectOptionsAttribute attribute allows you to specify multiple exclusive options on a string property, but what I’m looking for is the ability to specify multiple choices on a single property. This is analogous to the [Flags] attribute for enums.

I was wondering if this capability already exists today, such as if I decorate a property whose type is string[] or IEnumerable<string> as opposed to just string?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sfmskywalkercommented, Mar 4, 2021

Indeed it is! 😃 As of today, we have multiple option support in the form of check box list.

1reaction
ebekkercommented, Jun 23, 2020

I’ll explore the current use of SelectOptionsAttribute in the code base and see if I can contribute a PR to implement this behavior.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Chapter 10] 10.4 Multiple Choice Elements
By default, all options within a multiple-choice <select> tag are unselected. Include the selected attribute (no value) inside the <option> tag to preselect...
Read more >
HTML select multiple Attribute
The multiple attribute is a boolean attribute. When present, it specifies that multiple options can be selected at once. Selecting multiple options vary...
Read more >
HTML attribute: multiple - HTML: HyperText Markup Language
The multiple attribute on the <select> element represents a control for selecting zero or more options from the list of options. Otherwise, the ......
Read more >
Option Tag in HTML | Know Attributes of ...
Guide to Option Tag in HTML. Here we discuss the introduction, syntax, attributes, and examples of Option Tag in HTML respectively.
Read more >
The SELECT element
The SELECT element is used for single and multiple choice menus. It is generally rendered as a drop-down or pop-up menu, and offers...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found