Bootstrap Forms for Silverstripe 3

3 Jul

17 Responses to “Bootstrap Forms for Silverstripe 3”

  1. Neil Creagh 04. Jul, 2012 at 4:06 pm #

    A new ‘user defined forms’ module with these options would be fantastic.

    • Neil Creagh 04. Jul, 2012 at 4:06 pm #

      Oh and “Great Job”, as usual :)

  2. Cardinale 09. Jul, 2012 at 6:46 pm #

    Nice: Is it possible to get it run on SilverStripe 2.4 with some modifications?

  3. Shrike 11. Jul, 2012 at 4:36 am #

    Nice job, just got one error:

    $(“select.chosen”).chosen is not a function

    pointing to bootstrap_forms/javascript/bootstrap_forms.js

    I have integrated Bootstrap already in my template and use (true) on my _config.php

    Could it be, that jQuery should already be loaded at this point?

    • unclecheese 18. Jul, 2012 at 4:37 pm #

      You might try BootstrapForm::jquery_included(); to avoid dependency collisions.

  4. Lars 12. Jul, 2012 at 5:45 am #

    Great stuff , Thanks !

  5. Alexis 29. Sep, 2012 at 10:42 pm #

    Awesome work UncleCheese, as always. I’m only just getting into Bootstrap, and excited to find this module.

  6. Alexis 30. Sep, 2012 at 6:42 pm #

    Awesome work as usual! I only just got into bootstrap, can’t wait to try it out.

  7. Alexis 30. Sep, 2012 at 6:44 pm #

    Ops I already said that, it’s early in the morning and didn’t realise I’d already commented last night. Perhaps you want to delete some of that praise :0

  8. catcher 09. Oct, 2012 at 12:10 pm #

    Great module UC. Any progress on getting ‘inline’ layout worked out?

  9. ben 18. Jun, 2013 at 10:00 am #

    many thanks. hope you could release one for the zurb foundation.

  10. Werner 04. Jul, 2013 at 5:41 am #

    Hi Unclecheese, i cannot watch the screencast as vimeo claims this video is private.

  11. OpticBlaze 08. Oct, 2013 at 12:44 pm #

    Hi Uncle cheese,

    If i wanted to run $form->loadDataFrom($obj) on the Bootstrap form, how would i do that…i tried the following:

    BootstrapForm::loadDataFrom($obj) but it did not work

    • unclecheese 08. Oct, 2013 at 9:42 pm #

      What do you mean by “it did not work?”

      • OpticBlaze 09. Oct, 2013 at 5:20 am #

        Hi there,

        I get the following error with the following code testing on a record i know exists

        Parse error: syntax error, unexpected ‘BootstrapForm’ (T_STRING) in …./mysite/code/controllers/Customer.php

        ———————–

        //CREATE CUSTOMER FORM
        public function CustomerForm() {
        return BootstrapForm::create(

        $this,
        “CustomerForm”,
        FieldList::create(
        TextField::create(“Name”,”Name”),
        TextField::create(“Surname”,”Surname”),
        FieldList::create(
        FormAction::create(“AddCustomer”,”Add customer”)
        ->setStyle(“success”)
        ),
        BootstrapForm::loadDataFrom(Customer::get()->byID(4))
        )
        ->setLayout(“horizontal”);
        }

        Thanks

        • OpticBlaze 10. Oct, 2013 at 5:40 pm #

          Figured it out

          …..
          ->setLayout(“horizontal”)
          ->loadDataFrom(Customer::get()->byID(4));
          …..

Trackbacks and Pingbacks

  1. Display Logic Module for SilverStripe 3 | Left and Main - 28. Jan, 2013

    [...] Best of all, it works with Bootstrap Forms! [...]