elsa-workflows / elsa-workflows/elsa-core

Dynamic Multi-text or Checklist

Open
#4,045 1 comment 0 reactions 0 assignees View on GitHub
enhancement triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

according to #907
Is it possible yo have dynamic Multi-text or Checklist. I fill the select list with js and it is appearing in ui but does not result proper function and selected value are not showing in input tag.

` if (e.activityDescriptor.type === 'MultitextActivity') {
debugger
// Get a reference to the Field select list.
const followersSelectList = await awaitElement('#MultiTextWithNameValues');
//followersSelectList.innerHTML = "";

const response = await GetAsync(httpClientFactory, `api/FamsApi/WorkItemTemplate?projectId=${params.projectId}&workItemTypeId=${params.workItemTypeId}`);

followers = response.data;

var currentFollower = e.activityModel.properties.find(p => p.name === 'MultiTextWithNameValues').expressions['Literal'];

// Build up the fields dropdown list.
for (const follower of followers) {
var selected = false;
if (currentFollower != null)
selected = follower.value === currentFollower;
const option = new Option(follower.text, follower.value.toString(), selected, selected);
followersSelectList.options.add(option);
}
}`

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.