I have a form where I create two FormItems for each field. One is the standard FormItem for that type of field and another is a StaticTextItem. I have logic in a couple of different places that hides one and shows the other depending on the circumstance.
In one case the show/hide logic works fine. In the other case it appears to do nothing. I've set the developer console to show debug information for DynamicForm and I can see that the different FormItems are being redrawn when the show/hide is called. I've dumped strings to the console to show that I'm calling show and hide at the right time and on the right FormItem.
In one case (the one that works) I'm getting the FormItem from a TitleDoubleClickHandler event using event.getItem(). In the case that doesn't work I'm getting the FormItem from using ValuesManager.getItem(). But in both cases I am getting the expected FormItem, so I don't see how the method for getting the FormItem could make a difference.
What else can I look at to see where the problem might be?
In one case the show/hide logic works fine. In the other case it appears to do nothing. I've set the developer console to show debug information for DynamicForm and I can see that the different FormItems are being redrawn when the show/hide is called. I've dumped strings to the console to show that I'm calling show and hide at the right time and on the right FormItem.
In one case (the one that works) I'm getting the FormItem from a TitleDoubleClickHandler event using event.getItem(). In the case that doesn't work I'm getting the FormItem from using ValuesManager.getItem(). But in both cases I am getting the expected FormItem, so I don't see how the method for getting the FormItem could make a difference.
What else can I look at to see where the problem might be?
Comment