Hi Florian,

I get a laconic 'There are problems with some of your input.'

processInput function does exist.

If I replace
$htmlForm->show();
to:
$htmlForm->prepareForm()->displayForm( false );

I don't get any error message, but it does not reach processInput

If no JS messes up with select, that is, options are placed in the code
normally, it works.

So, I guess there is some JS validation going before submitting that
blocks the process.

Any idea how to handle this?

Pd.: Version MW 1.23.9

El 05/07/2015 a les 11:03 AM, [email protected] ha escrit:
> What is the error message? It seems you just copied an example code, so i 
> assume, that SpecialMyModule::processInput() doesn't exist?
> 
> If you want to add the form without any input validation you could use:
> $htmlForm->prepareForm()->displayForm( false );
> 
> But it would (maybe) make sense to use the built-in input validation :)
> 
> Best,
> Florian
> 
> Freundliche Grüße
> Florian Schmidt
> -----Original-Nachricht-----
> Betreff: [Wikitech-l] Disable validation in HTMLform
> Datum: Thu, 07 May 2015 10:20:41 +0200
> Von: Toni Hermoso Pulido <[email protected]>
> An: Wikimedia developers <[email protected]>
> 
> Hello,
> 
> In an HTMLForm I'm filling a select with options extracted from a JSON
> call (using ResourceLoader addModules).
> Everything OK, excepts when I try to submit the form. The form is not
> properly validated before even when I put 'validation-callback' =>
> true and required => false in the actual select I'm filling with
> Javascript.
> 
> I presume this may be happening because I'm puting these options not
> in the expected way.
> 
> How could this be solved? E. g., fully disabling validation of the form?
> 
> Involved code:
> http://pastebin.com/Q5KA2e1U
> 


-- 
Toni Hermoso Pulido
http://www.cau.cat
http://www.similis.cc

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to