How do I ask the user for more than one parameter in the same screen?

asked 06 Sep '11, 07:57

Jake's gravatar image

Jake ♦♦
796222226235
accept rate: 98%


You can ask for multiple parameters in the same screen using a parameterGroup parameter, as shown in the example. Please note that parameter groups also need to contain a <name> tag.

<parameterGroup>
 <name>userandpass</name>
 <explanation>Please enter the username and password for your database.</explanation>
 <parameterList>
 <stringParameter>
    <name>username</name>
    <default>admin</default>
    <description>Username</description>
  </stringParameter>
  <passwordParameter>
    <ask>yes</ask>
    <name>masterpass</name>
    <description>Password</description>
    <descriptionRetype>Retype password</descriptionRetype>
    <explanation>Please provide a password for the database user</explanation>
    <cliOptionName>password</cliOptionName>
  </passwordParameter>
  </parameterList>
</parameterGroup>
link

answered 06 Sep '11, 07:58

Jake's gravatar image

Jake ♦♦
796222226235
accept rate: 98%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×47
×8

Asked: 06 Sep '11, 07:57

Seen: 1,818 times

Last updated: 12 Sep '11, 04:14