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

How to display second a form #18

Open
pizzablitz opened this issue May 2, 2019 · 3 comments
Open

How to display second a form #18

pizzablitz opened this issue May 2, 2019 · 3 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@pizzablitz
Copy link

Hi,
I would like to display a second form after the first form. How can I do that? For example, depending on the answer from the first form, the user must enter a confirmation.
Thanks

@markdomansky markdomansky added question Further information is requested enhancement New feature or request labels May 5, 2019
@markdomansky
Copy link
Owner

It's not possible to do this as you've described. However, you could do one of the following:

  • Add a switch or boolean field, something like
    [Parameter(Mandatory,HelpMessage="I confirm I want to delete this account")][switch]$Confirm

  • You could also link to another form, however that form would already be visible to the user and they could click on that form directly.

@pizzablitz
Copy link
Author

Hi Mark
Sorry that I ask again. Can you give me an example of how I can link to another form?
Many Thanks

@markdomansky
Copy link
Owner

Sure!
Here is an example. To link to another form, you would write-host or write-output "[[a|URI|LINK]]" where URI is the URI you want, and LINK is what you want to display.

You may want to check out the presentation I did on this. Despite some technical issues, it covers the majority of the features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants