defaulting picklist value


I am trying to defaulting a value in the picklist with the JavaScript.

var params = arguments[0],
$ = skuid.$;

var result=document.getElementById(“PicklistId”);
result.options[1].selected = true;
result.options[1].defaultSelected = true;

But it is not working. Can any one please fix it. 


Hi Arjun,

I just started using Skuid, Hope this helps.

var field = arguments[0], value = skuid.utils.decodeHTML(arguments[1]),
$ = skuid.$;
    var dataTypes = [];
        active: true
        ,defaultValue: true
        ,label : ‘–None–’
        ,value : ‘’

Goutham, thanks for your reply. Your code is not working.


Give this thread a read:

And this one:…

I think between the two you should be able to piece it together.

Actually, this one is even better: