As of April 17, 2018, this site is now in read-only mode. To start new Blackbaud Developer’s discussions, you will find Developer Discussions in the Blackbaud CRM Community.

To post or respond to Blackbaud Community discussions, you will have to login using a login. Learn how to login here. If you have questions or need assistance, please email

1.7k questions

3.2k answers

401 users


1.7k questions

3.2k answers

401 users

I've got an extension form to the Constituent Summary Profile view form. I have a couple fields on the extension form that I want to move into the parent form html at load time. I think I've got everything in place in the script itself except I can't seem to figure out how to get the instance id of the parent form modelInstanceID. Does anyone have any idea how to do this? The following is my script:

(function (container, modelInstanceID) {

"use strict";
var mapReplacement, Util = BBUI.forms.Utility;
//Obtain reference to model instance -> necessary to prefix element names correctly
mapReplacement = Util.getIdPrefix(modelInstanceID);

function init() {
//get reference to the Parent Form div
    var div = document.getElementById(mapReplacement + 'ConstituentSummaryProfileViewForm');
    var newTd = document.createElement('td');
    newTd.valign = 'top';
    var newDiv = document.createElement('div');
    newDiv.class = 'bbui-forms-fieldset-column';
    newDiv.appendChild(document.getElementById(mapReplacement + 'ConstituentSummaryProfileExtensionViewCustom'));


window.onload = init();


asked by davidkoleno (188 points)

Please log in or register to answer this question.