Skip to content

Validating input from Plaster parameters #429

Open
@erikgraa

Description

@erikgraa

Hi!

I have scoured over the documentation and cannot find any reference of being able to leverage e.g. ValidatePattern in parameters.

For instance, when one has a text parameter, it could be useful to have the user re-try inputting a value until it satisfies some regular expression.

Example showing how it could work with an optional pattern attribute.

<parameter name='ModuleName' type='text' prompt='Enter the name of the module' pattern='^[\w\s]+$' />
<parameter name='Version' type='text' prompt='Enter the version of the module' pattern='^\d\.\d$' />

I might have missed something, or is this functionality at present unimplemented?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions