Action

Segmented Control Prompt

Posted by agiletortoise, Last update almost 2 years ago - Unlisted

Displays prompt with segmented controls.

Steps

  • script

    // Prompt example
    // Using Select 
    
    var p = Prompt.create();
    p.title = "Prompt Segmented Demo";
    //p.message = "Demonstrates options for input in prompts.";
    
    p.addSegmentedControl("p1", "Select", ["Option 1", "Option 2", "Option 3"], "Option 2");
    
    p.addButton("Dismiss");
    if (p.show()) {
    	var s = "p1: " + p.fieldValues["p1"] + "\n\n";
    	alert(s);
    }

Options

  • After Success Default
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.