1
0
-1

I have created a custom component property of category "Options" and of Type Boolean.

My expectation is that I would see this new property in the component/form and look to see if it is set to true or false to control scripting behavior in the form. However I do not see this appear in the Options category. 

Can someone tell me what I may be doing wrong or if my expectation is not correct.

  1. Ben Warner

    Yes, this should work fine. Can you provide more information and maybe some screenshots?

  2. Unknown User (kelliott)

    Hi Ben

    I can see that the custom property does not exist on the component but does in the master form once the component has been added. I added this yesterday but I must have needed to log out and log back into see it in the main form. 

    Is this expected to only see the property added in the form not the component?

    Thank you,

CommentAdd your comment...

2 answers

  1.  
    2
    1
    0

    You can define component properties in the component editor but these do not appear in the properties tab until you use the component in a form. If you modify a component, you need to refresh your form to pick up the changes. 

     

      CommentAdd your comment...
    1.  
      1
      0
      -1

      Hi Kristan,

      Can you post your widget.json contents please?

      You should have something like this in your options section under "propDefs":

      "showCountdown": {

      "label": "Show Countdown Value",
      "type": "boolean",
      "value": true,
      "defaultValue": true,
      "helpText": "Show the value of the countdown timer"

      }

      Make sure you include the "value" property, otherwise there may be Javascript errors at runtime.

      1. Tim Stewart

        I'm guessing this is a component made within the Maestro tool, so to get access to widget.json you'd need to export the component design version's resources (from the resources tab in that design's dashboard entry, Export All Resources).

      CommentAdd your comment...