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]>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

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

Any idea? Thanks!

- -- 
Toni Hermoso Pulido
http://www.cau.cat
http://www.similis.cc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJVSyAdAAoJELt+jnuNHMW+c7MP/3Wztb2T5n3fiVzVlsmD38c1
VSJc3/HLwRtQQVDBTk7U0wrqie3/s6wsBNZUds63HqiEi+YE/PaWu/oqmyziiqr5
JNeIiPdfsWYoZFJhb5Y6mTVYWrEpn2QgtGkjeItvBc5QGjCRdJEOtASoqvmbSieT
mdNY30IolO8p6P4ILwoRhK/520+EIVm7YY4L12SdcPXGSQ+g1tFcZVut6uMjbfeD
KPA2X0mSiusIqxLAlhpl5ZbfUCOSj202MU928rWMqQe9A73Lfi/LURXeebDyLKTm
29uoLZ/K4SQ+1FQ8blfZHyikjJi8geMZV9yqFV0K96ADQkC95WxbHHE4aNkl1lxa
k4OViYOeoPekriNA/1DGBOEV2oE7oW2i7jeJTDxmWbN5DmFH3zY5QOMEpUZkXXvW
FnQ6FU20AHEda2nnukamLIoc585aaUoX1hRP+ugQKpiVJIzQTOHONU0D/SW9whdO
IX+P1JBw8e38ngsj7TbEQrVfmAv+4p3OXdfUI/HdeBqs4Mv+f1SB8Gi8GxUrGsOd
ZsTL5NTCNmZo5d/tdAIOtSKZJAYfe75BceRNKNfcHKFLS2RB8BhFSA4s8Lfd85wE
D3KHurkatzT7maAkQ17ym+ryn1Vu8FSck5d/RtHCKVq1FKPw5p68ExqQEP9qbA+A
Ig/fLxolcoxV1ZzAi+Zt
=nneA
-----END PGP SIGNATURE-----

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



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

Reply via email to