I have a data entry form that allows the user to to input data, but also allows them to choose a color. I have wired the inputColor and chooseColor components together and the user can pick a color. It all works great until the user decides to choose a custom color. This causes the control to fire up a custom color picker dialogue. When the user picks their custom color and presses the Okay button on the custom color dialogue, the control fires an event which causes page validation. The problem is that I have a number of required fields in the input form and, if the user hasn't filled those in yet, they get a nasty error message requiring input for all of those fields. Question:
Is there a way to stop the pressing of the Okay button on a custom color picker dialogue from triggering page validation? I've tried setting the autoSubmit="false" on the inputColor control, but that doesn't work.
I must apologize, your suggestion was the correct solution. I had a subform in my page which wasn't working. I checked the value of "default" in the property explorer within the IDE and it said that it was set to the default value of "true". This was not actually the case. When I looked at the source code of the page, there was no attribute set for "default" in the component's XML.
After manually adding default=true as an attribute in the XML, the subform stopped the whole form from being submitted and the custom color can now be set.
Thank you very much, I'm sorry it took me so long to get back to you.