I am trying to use the example that I saw on this forum to get value from a dropdown list as my additional field, however, I am not showing the drop down list.
Here is the modified javascript code:
Please tell me what I am doing wrong as I am not very good at javascript. Besides, how do I get the value into a variable so I can get this over to the database.
Any assistance will be appreciated.
Thank you guys.
Here is the modified javascript code:
function onClientFileUploaded(radAsyncUpload, args) { var row = args.get_row(), inputName = radAsyncUpload.getAdditionalFieldID("objName"), inputID = inputName, input = createSelect(inputID, inputName), label = createLabel(inputID), br = document.createElement( "br" ); row.appendChild( br ); row.appendChild( label ); row.appendChild( input );}function createSelect(inputID, inputName) { var input = "<select id='" + inputID + "' name='" + inputName + "'><option value='Volvo'>Volvo</option><option value='Ford'>Ford</option><option value='SAAB'>SAAB</option><option value='Toyota'>Toyota</option><option value='BMW'>BMW</option><option value='OTHERS'>OTHERS</option></select>"; return input;} function createLabel(forArrt) { var label = document.createElement( "label" ); label.setAttribute( "for", forArrt ); label.innerHTML = "Select a value: "; return label;}Please tell me what I am doing wrong as I am not very good at javascript. Besides, how do I get the value into a variable so I can get this over to the database.
Any assistance will be appreciated.
Thank you guys.