Populating Fields


JavaScript can be used as part of blender to populate fields on a new record for inbound calls. For example, inserting the phone number into the phone field.


$.njDialerPlugin.onConnect = function() {
    // lead connected

    var number = jQuery.njDialerPlugin.getFieldValue('njDialedNumber');
    jQuery.njDialerPlugin.setFieldValueByName('HomePhone',number);

};


Now when, a new record is created the phone field will be populated with the phone number that called in.