@@ -563,6 +563,9 @@ var FMEServer = ( function() {
563563 var caption = document . createElement ( "label" ) ;
564564 caption . innerHTML = option . caption ;
565565 choice . appendChild ( caption ) ;
566+ if ( checkbox . value == param . defaultValue ) {
567+ checkbox . checked = true ;
568+ }
566569 }
567570 } else if ( param . type === "LOOKUP_CHOICE" ||
568571 param . type === "STRING_OR_CHOICE" ||
@@ -577,14 +580,19 @@ var FMEServer = ( function() {
577580 optionItem . innerHTML = option . caption ;
578581 optionItem . value = option . value ;
579582 choice . appendChild ( optionItem ) ;
583+ if ( optionItem . value == param . defaultValue ) {
584+ optionItem . selected = true ;
585+ }
580586 }
581587 } else if ( param . type === "TEXT_EDIT" ) {
582588 choice = document . createElement ( "textarea" ) ;
583589 choice . name = param . name ;
590+ choice . value = param . defaultValue ;
584591 } else if ( param . type == "INTEGER" ) {
585592 choice = document . createElement ( "input" ) ;
586593 choice . type = "number" ;
587594 choice . name = param . name ;
595+ choice . value = param . defaultValue ;
588596 } else if ( param . type == "PASSWORD" ) {
589597 choice = document . createElement ( "input" ) ;
590598 choice . type = "password" ;
0 commit comments