Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: How to uncheck one checkbox if some other is checked

by SerZKO (Beadle)
on Aug 10, 2012 at 05:53 UTC ( [id://986669]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to uncheck one checkbox if some other is checked
in thread How to uncheck one checkbox if some other is checked

Hej Anonimous monk and thanks for your reply,

That's an excellent idea to check it on submission. The thing is that if neither of "P", "F" or "K" is checked then "Ej" should be checked and vice versa - if any(or more) of "P", "F" or "K" are checked then "Ej" must not be checked.

Anyhow, thanks for pointing to that direction

Replies are listed 'Best First'.
Re^4: How to uncheck one checkbox if some other is checked
by Anonymous Monk on Aug 10, 2012 at 06:46 UTC

    That would be something like this, then.

    my %checked = map { $_ => 1 } $qry->param("GRU$Za"); if (keys %checked > 1) { delete $checked{'E'}; } elsif (keys %checked == 0) { %checked = ('E' => 1); }

    I'd still document it in the UI; it sounds like behaviour that is likely to cause confusion.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-03-19 03:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found