UserInput Block

Modified: 2008/01/26 20:00 by Andy Sterland - Categorized as: Popfly Blocks
Gets user input with a text box and button.

Edit

Operations

Edit

getText



Retrieves text typed in by the user, once the button is clicked.

Inputs

NameDescription
labelA message to show before the text box
defaultTextDefault content for the text box
buttonTextA caption for the button

Outputs

Name
string

Edit

getTwoTextValues



Retrieves two pieces of text typed in by the user, once the button is clicked.

Inputs

NameDescription
label1A message to show before the first text box
label2A message to show before the second text box
defaultText1Default content for the first text box
defaultText2Default content for the second text box
buttonTextA caption for the button

Outputs

Name
TwoValues - custom object

Edit

getThreeTextValues



Retrieves three pieces of text typed in by the user, once the button is clicked.

Inputs

NameDescription
label1A message to show before the first text box
label2A message to show before the second text box
label3A message to show before the third text box
defaultText1Default content for the first text box
defaultText2Default content for the second text box
defaultText3Default content for the third text box
buttonTextA caption for the button

Outputs

Name
ThreeValues - custom object

Edit

getChoiceFromDropdown



Retrieves text selected from a dropdown by the user.

Inputs

NameDescription
choicesA list of choices
labelA message to show before the dropdown
defaultTextDefault content for the selection box

Outputs

Name
string

Edit

getTwoChoicesFromDropdowns



Retrieves two pieces of text selected by the user, once the button is clicked.

Inputs

NameDescription
choices1The first list of choices
choices2The second list of choices
label1A message to show before the first dropdown
label2A message to show before the second dropdown
defaultText1Default content for the first dropdown
defaultText2Default content for the second dropdown
buttonTextA caption for the button

Outputs

Name
TwoValues - custom object

Edit

getThreeChoicesFromDropdowns



Retrieves three pieces of text selected by the user, once the button is clicked.

Inputs

NameDescription
choices1The first list of choices
choices2The second list of choices
choices3The third list of choices
label1A message to show before the first dropdown
label2A message to show before the second dropdown
label3A message to show before the third dropdown
defaultText1Default content for the first dropdown
defaultText2Default content for the second dropdown
defaultText2Default content for the third dropdown
buttonTextA caption for the button

Outputs

Name
ThreeValues - custom object

Edit

getTextAndChoice



Retrieves two pieces of text entered by the user, once the button is clicked. The first piece of text is typed in and the second piece of text is selected from a dropdown.

Inputs

NameDescription
choicesThe list of choices for the dropdown
label1A message to show before the text box
label2A message to show before the dropdown
defaultText1Default content for the text box
defaultText2Default content for the dropdown
buttonTextA caption for the button

Outputs

Name
TwoValues - custom object

Edit

getQueryParameter



Retrieves a value from the query string in the URL (e.g. ##SHELL_URL##/?foo=test). This method will only work at runtime, at preview time it will return an empty string.

Inputs

NameDescription
nameThe name of the value in the query string e.g. ?foo=test, name should be foo and the value is test.

Outputs

Name
string


Edit

Objects

Details about type definitions can be found on the Block Metadata Type System page. Edit

TwoValues

NameType
value1string
value2string
Edit

ThreeValues

NameType
value1string
value2string
value3string

Privacy. Terms of Use. Trademarks.
ScrewTurn Wiki version 2.0.22. Some of the icons created by FamFamFam.