Please try this script:
<script>
$(document).ready(function(){
// Parameters
var codeField = 'GridQ_r1_c1';
var nameField = 'GridQ_r1_c2';
var addressField = 'GridQ_r1_c3';
var specialCode = 11;
var specialName = 'Name!';
var specialAddress = 'Address!';
// Run
$('#' + codeField).keyup(function(){
if (SSI_GetValue(codeField) == specialCode) {
$('#' + nameField).val(specialName);
$('#' + addressField).val(specialAddress);
}
});
})
</script>
Lines 4-6 must be the names of the fields. I've included an example for a grid question, but these could be replaced with the names of your select and open-end questions instead.
Lines 8-10 control the special promoter ID value and the automatic texts to place into the text fields.