elsa-workflows / elsa-workflows/elsa-core

setting default values for MultiText control does not work

Open
#4,348 3 comments 0 reactions 0 assignees View on GitHub
bug elsa 2 triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

in version 2.12, I use the following code to add a MultiText control in my custom activity:

[ActivityInput(
UIHint = ActivityInputUIHints.MultiText,
DefaultSyntax = "Json",
SupportedSyntaxes = new[] { "Json", "Liquid" },
Label = "Branch",
ConsiderValuesAsOutcomes = true)]
public ICollection PossibleOutcomes { get; set; } = new List { "test1", "test2" };

but it doesn't work, there is no default value shown in the designer:
![image](https://github.com/elsa-workflows/elsa-core/assets/15852860/9793b75a-ab3b-42de-a9fd-0dc0993818a7)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.