Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The screen script enables you to determine if an action requires additional input and to build a form where the user can fill in the necessary data.

Input Types

Power Actions™ provide a variety of input fields to suit your needs. 

Category

Input Type

Examples

Content

HTML content

Image Added

Wiki content

No options, single value

Text

Image Added

Text Area

Single Checkbox

Date Picker

Date Time Picker

User Picker

No options, multiple values

File Upload

Image Added

Multiple options, one selectable value

Select List

Image Added

Radio Group

Multiple options, multiple selectable values

Multi Select List

Image Added

Checkbox Group

Anchor
new-method
new-method

Creating the Screen

The input fields are created using a script that contains specially designed routines that create the fields. See the following pages for each routine that can create an input:

Child pages (Children Display)
pageInput Type Routines

Additional Screen Building Routines

In addition to adding controls to the screen, Power Actions™ provide more routines to control the way your screen is displayed. For example, changing the dialog title, the text on the submit button.

See the following pages for each routine that can interact with the screen:

Child pages (Children Display)
pageDialog Control Routines

Examples

Example Screen Script
Code Block
boolean isDisabled = false;
boolean isRequired = true;
string badesc = "This is a description";

//Content
BA_createHtmlContent("<h1>HTML Title Text</h1>");
BA_createWikiContent("h2. Wiki Subtitle - TEST-2 Cool :D");

//No options, single value
BA_createInput("input", "asdf", isDisabled, isRequired, badesc);
BA_createTextArea("ta", "some text", isDisabled, 3, isRequired, badesc);
BA_createSingleCheckbox("cbx", true, isDisabled, isRequired, badesc);
date d = currentDate();
BA_createDatePicker("date", d, isDisabled, isRequired, badesc);
BA_createDateTimePicker("datetime", d, isDisabled, isRequired, badesc);
BA_createUserPicker("userpicker", "admin", isDisabled, isRequired, badesc);

//No options, multiple values
BA_createFileUpload("File Upload", isDisabled, isRequired, badesc);

//Multiple options, one selectable value
BA_createSelectList("Select List", {"a", "b"}, "a", isDisabled, isRequired, badesc);
BA_createRadioGroup("Radio Group", {"a", "b"}, "a", isDisabled, isRequired, badesc);

//Multiple options, multiple selectable values
BA_createMultiSelectList("Multi Select List", {"a", "b", "c"}, {"a", "b"}, isDisabled, isRequired, badesc);
BA_createCheckboxGroup("Checkbox Group", {"a", "b", "c"}, {"a", "b"}, isDisabled, isRequired, badesc);

BA_setActionTitle("Multiple options, multiple selectable values");
BA_setExecuteButtonText("Example"); 

Contents

Table of Contents
excludeSee also

See More

Child pages (Children Display)
pageConfiguring a Power Actions Custom Field