etoolbox-authoring-kit icon indicating copy to clipboard operation
etoolbox-authoring-kit copied to clipboard

[EAK-378] DependsOn: add an action to setup placeholder(empty text)from query

Open ala-n opened this issue 2 years ago • 1 comments

As an EAK user, I want to be able to set up a placeholder value (also known as an empty text value) for fields using the DependsOn plugin when the value is computed dynamically and depends on configuration.

Example:

    @DialogField(...)
    @TextField()
    @DependsOn(
         action = "set-placeholder",
         query = "@condition ? 'value1' : 'value2'"
    )
    private String field2;

ala-n avatar Aug 05 '22 14:08 ala-n