Pode.Web icon indicating copy to clipboard operation
Pode.Web copied to clipboard

Update Checkbox Value

Open kanichrnd opened this issue 2 years ago • 4 comments

Hello,

I'm struggling to find a way to update the values of Checkboxes like it was made for Update-PodeWebSelect

I've tried to use "New-PodeWebSelect -Multiple" instead of checkboxes, but multiple selection is not so simple especially if you try to do this from Smartphone browser.

So, my question is: is there any options to update values (and amount of them) of New-PodeWebCheckbox with Button or Click Events?

Thank you in advance!

kanichrnd avatar Mar 22 '23 10:03 kanichrnd

You should be able to use Update-PodeWebCheckbox

phdavis avatar Mar 22 '23 12:03 phdavis

You should be able to use Update-PodeWebCheckbox

I've tried to, but as per documentation, Update-PodeWebCheckbox can only update checkbox state, like enabled/disabled, checked/unchecked:

Update-PodeWebCheckbox -Id <String> [-OptionId <Int32>] [-State <String>] [-Checked] [<CommonParameters>]

kanichrnd avatar Mar 22 '23 12:03 kanichrnd

There isn't a way to do this currently, but adding -Value support for Update-PodeWebCheckbox should be possible :)

Badgerati avatar Mar 22 '23 22:03 Badgerati

I would very much like this also. Currently using a multiple select, but the user experience is not great as you have to educate them to hold CTRL for multiple selections, and one stray click can reset your selection.

DanGough avatar Jun 23 '23 10:06 DanGough