Michael Peters wrote:
RA Jones wrote:
Presumably changing all rm's to the current rm is the intended behaviour
of ValidateRM / HTML::FillInForm, but is there anything I can do to
modify this so it works the way I desire, or is it not possible? Hope it
all makes sense.
Well, HTML::FillInForm will fill in everything unless it's told not to. You can
pass extra args to it as a third argument to check_rm(). You can either tell it
to ignore fields named 'rm' or you can tell it which form you want to fill.
$obj->check_rm('run_mode', '_validate_run_mode', {ignore_fields => ['rm']},)
|| return $obj->dfv_error_page();
or
$obj->check_rm('run_mode', '_validate_run_mode', {target => 'form1' },)
|| return $obj->dfv_error_page();
OK, thanks. So the behaviour is caused by FillInForm, and nothing to do
with CAP::Forward. I did see something about ignore_fields but missed
its significance. Makes me wonder if FiF is optimally suited for use
with multi-form web-pages using hidden fields called rm.
And can already confirm initial trial using ignore_fields seems to be
doing the right thing. Many thanks.
--
Richard Jones
Leeds, UK
mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]