2 Replies Latest reply on Dec 27, 2014 10:39 AM by RoelfW

    script triggers and repetition fields

    RoelfW

      Title

      script triggers and repetition fields

      Post

      I am designing a layout which will act as the input field for a personality profile app that I am building.

      I want the layout to be very dynamic and quite visual

      I have been experimenting various ways of laying it out and am seeking to confirm some things

      1. the OnObjectModify ST applies to all of of the repetitions of a repetition field. Entering any of the specific repetitions triggers the ST.

      2. Styles apply to all of the repetitions of an field on a layout. So far, I have not be able to apply one style to a one repetition and another style to another

      3. Conditional formatting applies to all of the repetitions of a field on a layout.  So far I have not been able to apply different CFs to different repetitions of a field.

      My solution to this to create a number of buttons and set them up to so the user clicks on the one which indicates their choice in response to my prompt. I can apply conditional formatting to buttons, so I can change the "color" of the selected button dynamically by associating a GV with each button and setting it as I need to make changes.

      It is more work initially in terms of layouts and scripting but seems to be the better options for getting the kind of dynamic on the fly screen changes that I need.

      If someone knows, could they please confirm or refute my 3 experiments above.

       

      Thanks

       

      Roelf

        • 1. Re: script triggers and repetition fields
          Sorbsbuster

          Why not just use more fields?  It is limitations like this (and more) that make repeated fields probably not the best choice in this scenario.

          • 2. Re: script triggers and repetition fields
            RoelfW

            I have settled on using buttons - I have 55 of them making up 5 scales with 11 intervals = each is 40 x 20 pixels so they look good on the screen spread out from left to right.

            they all execute the same first step script - using a script parameter which indicates which button was pushed (e.g. 511 indicates the 11th button in the 5th scale and so on. Based on this input  the script sets one of 5 GV variables 9in a specific table) with a repetition of 11 which allows conditional formatting to change the color fill of the button so it is clear which button in each scale was last pushed. Works well and makes visual sense to people using the app.