Skip to content

How to reset the default value to an empty string #297

@dinodipardo

Description

@dinodipardo

How can you reset the default value to an empty string in the following situation?

stringInputPrompt = "I'm the default value";

stringInputPrompt = Prompt.Input(
$"Please provide a value or press enter to use the default value",
defaultValue: string.IsNullOrEmpty(stringInputPrompt) ? null : stringInputPrompt,
validators: null
);

The goal is to prepopulate the value, so the user doesn't have to re-enter it each time (similar to a setup wizard).

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions