Zum Hauptinhalt gehen

Is it possible to put items from the itempicker list in a scrollable panel?

Kommentare

2 Kommentare

  • Colin Doak

    There's no way to configure overflow behaviour in Workflow Designer.  It is possible to do this using the Inject CSS activity, however.  Each form element's class follows the following pattern:

    gcx-forms-[form element id] where [form element name] is the id of your item picker.  So, if you have an item picker with the name examplePicker then the css would look something like:

    .gcx-forms-examplePicker .items {
        overflow: scroll;
        height: 200px;
    }

    Add the above the an Inject CSS activity content at the start of your Workflow and see if it works.  You may need to play with it a bit to make it behave the way you want.

    A word of warning:  CSS can be very browser specific so test thoroughly against the target browsers before deploying.

    Hope this helps,

    Colin

    1
  • Jeff DeWitt

    Here is the updated code for the Inject CSS activity for a form in a VertiGIS Studio Web application:

    [id^="gcx-forms-itemPicker1"] ul.ItemPicker-list-items {
    overflow-y: scroll;
    height:150px;
    }

    Just replace the itemPicker1 value in this example with the ID of the specific item picker in your form and change the height to whatever size you want. Thanks so much to Amanda Frech from support for that code, worked perfectly!

     

     


    2

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.