Skip to content

[Feature request] Import forms in typescript #323

Description

@ThomasThurnher

Is your feature request related to a problem? Please describe.

I would like to import the data for a new form from a JSON file. I would like to use this data very much like the interaction in typescript with the "openForm" functionality, that is instead of :

const result = await modalForm.openForm({
				title: "Choose TimelineProfile",
				fields: [
					{
						...
					  }
				],
			});

I would like to interact with it as (or some workaround of that)

const result = await modalForm.openForm({
				"pathTo/myFormData.json"
			});

Describe the solution you'd like

Either, I would like to input the data via a string which is parsed from JSON, or via direct input of the JSON file.

Is this possible somehow? Thank you for your answer and I greatly appreciate your work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions