This documentation relates to an earlier version of Atlassian Gadgets.
View

Unknown macro: {spacejump}

or visit the current documentation home.

Skip to end of metadata
Go to start of metadata

This page is part of the Gadget Developers' JavaScript Cookbook.

How do I show the config screen on initial load only?

Include the isConfigured userpref defaulted to 'false' and include the nowConfigured field in your config descriptor. On first save, the userpref will be set to true and from then on, the view screen will be shown on gadget load:

  1. Include the isConfigured userpref defaulted to 'false':
    <UserPref name="isConfigured" datatype="hidden" default_value="false" />
    
  2. Include the following field in your config descriptor:
    AJS.gadget.fields.nowConfigured()
    
  3. Or, if that is not available:
    {
      userpref: "isConfigured",
      type: "hidden",
      value: "true"
    }
    

RELATED TOPICS

Gadget Developers' JavaScript Cookbook
Using the Atlassian Gadgets JavaScript Framework

  • No labels