Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

HTML::Formhandler Options For One Select Field Depend On Another

by varanasi (Scribe)
on Feb 07, 2019 at 15:02 UTC ( [id://1229555]=perlquestion: print w/replies, xml ) Need Help??

varanasi has asked for the wisdom of the Perl Monks concerning the following question:

I have a form defined using Moose, with two select fields: One for country and one for state/province. I've populated the country with options using a sub (options_country_id), but the state/province options depend on what one selects in the country field. I can't figure out how to get the value selected in the country field into my sub so I can display the proper options in the state/province select field.

I thought I had seen how this is done in the HTML::FormHandler docs, but after a couple hours of looking, I can't find it.

I would be grateful for your help.

  • Comment on HTML::Formhandler Options For One Select Field Depend On Another

Replies are listed 'Best First'.
Re: HTML::Formhandler Options For One Select Field Depend On Another
by Don Coyote (Hermit) on Feb 07, 2019 at 19:52 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1229555]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-04-25 15:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found