1. Fields
  2. State Selector Field

Fields

State Selector Field

The State Selector Field allows for selecting a state of the current stub.

This can be used to select any of the available state selector with in a stub. The state selector is a type of Select Resource Field, a field that user to select items from dynamic resources.

Basic usage

Adds a state selector field to the fields of as a Select Resource Field.

loading...

Result

The field will be displayed as a select field as below: State Selector State Selector Field

The resultant data will be available in the stubpost.data as:

loading...

This can be substituted with eg. ~~stubpost.data.state_selector where required.

Parameters

params.resource_name
required
string

The specific name of the resource you would like to load for selection. In this case, it should be states.

params.dataresourceinterfaceuuid
optional
params.details.orgcredentialuuid
optional

See fields for common field parameters like validation and conditional rendering.