Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to add event or call function on button click and remove data from key and value in formio #1068

Open
vinayrdy966 opened this issue Apr 3, 2024 · 0 comments
Labels

Comments

@vinayrdy966
Copy link

image

I have created custom tab called mapping in formio, now on Add workflow property button click, I need to add that value to above dropdown and clear the data from key and value.

Also after clicking on add new button only one input box should come not multiple should create.

Is there any way I can call function in angular like addProperty() after button click.
I have used form-builder for it and code is:
const newTab = {
key: 'mapping',
label: 'Mapping',
components: [
{
weight: 30,
type: 'select',
label: 'Workflow Property',
tooltip: 'Workflow Property',
key: 'workflowProperty',
input: true,
inline: true,
data: { values: workflowPropertyValues }
},
{
label: 'Create Workflow Property',
addAnother: 'Add Workflow Property',
customClass: 'pr-4 pl-4',
tableView: false,
key: 'workflowpropertycreate',
type: 'datamap',
input: true,
valueComponent: {
type: 'textfield',
key: 'value',
label: 'Value',
input: true,
hideLabel: true,
tableView: true
}
}
]
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant