Def: Does not work, period.

Def: Does not work, period.

INTONEINTONE Posts: 153Questions: 58Answers: 6

I have spent countless days trying to get the def:"Select..." to work. my only solution was to do something like this:

                        {
                                label: "<b>Vehicle 1 Insurance Company:</b>",
                                className:"insurance_case",
                                name:  "cases.vehicle_1_insurance_company",
                                id:"cases_vehicle_1_insurance_company",
                                type:"select",
                                def:"Select..."
                            }

then on init edit or init create do the following:

             //make my own default select
            if($("#cases_vehicle_1_insurance_company option[value='']").length == 0){
                $("#cases_vehicle_1_insurance_company").prepend("<option value=''>Select...</option>");
          }

the def does not work for dynamic or static list.

This discussion has been closed.