Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » problem: how take checkbox value?

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 856 Views
  • bebabeba
    Avatar
    Community Member
    192 Posts

    problem: how take checkbox value? Link to this post

    Hi!
    Can you help me to take checkbox value?I need showing in my page site the value that I select in checkbox.So if I select "5 stelle" I want see in my page site "5 stelle" I have a function function doRicettivita($data, $form) that take the value of the form.
    I create checkbox in this way:

    new CheckboxSetField(
                $name = "categoria",
                $title = "Categoria:",
                $source = array(
                 "1" => "5L stelle",
                 "2" => "5 stelle",
                 "3" => "4 stelle",
                "4" => "3 stelle"
                 ),
                $value = ""   //mi dice quale selezionare per prima nella chekc
                )

    856 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.