Martin Procházka
Martin Procházka
How does this help me when I have those countries loaded using AJAX and have `$select->checkAllowedValues = FALSE;`? I need to disable scope validation for that select for the submit...
Because I am stupid, `$select->setPrompt()` is what I needed, not to disable validation scope. But I still think that disabling the scope per field would be better.
@dg I am closing this as it is probably unnecessary to have it here.
@dg I have to disable validation scope when I use `$select->setRequired();`, `$select->setPrompt()` is not applicable in this case. The problem is when I submit form with AJAX data, the value...
@dg Well I have a few ideas ### First idea - Add `$validateScope` property to `BaseControl` which will be bool. - Allow disabling scope per control using `$control->disableValidationScope();` // just...
@JanTvrdik Yeah, it is particularly troubling issue this one. I don't mind working with validation scope, it's just not very intuitive to work with.
> @JanTvrdik I don't think that validation scopes should be used for this kind of issue at all. Really? Why? With your another random idea, I see potential problem with...
@JanTvrdik I do want the value validated, and I need it to be required, but that does not play well with AJAX values feeded in to the select box ...
@JanTvrdik In this context I ment the requirement validation as i use this to suggest user names and I get back just int (user Id) which I then in the...
@JanTvrdik Ignore it, we diverged from the problem here, validation is not the issue, getting the value is.