How Do I output Custom CRM Fields

Updated on 20-October-2016 at 10:16 AM

Business Catalyst End of life announcement - find out more details.

This topic assumes you have already made your custom fields and have assigned them to contacts.

Step 1:

Create a Test Page or go to a test page you may have.

Step 2:

Launch the module manager and select Secure Zones

Capture2.PNG

Step 3:

Select to insert an Update User Details form.

webformselect.jpg

Step 4:

When you click the link you will see the CRM fields dropdown appear, Choose the custom field set you made.

Step 5:

Insert the form into the page.

Step 6:

If you Click the HTML view and scroll to where it has inserted the custom CRM fields and look at the source you will see that there is the module tag code you need.

codesnip.png

<tr>
	<td>
		<label for="CAT_Custom_812395_485745">Media</label>
		<br />
		<input type="text" value="{module_customerfield,485745,812395}" maxlength="4000" name="CAT_Custom_812395_485745" id="CAT_Custom_812395_485745" class="cat_textbox" />
	</td>
</tr>


{module_customerfield,485745,812395} is what your after.

Step 7:

Copy the module code and use as you need to in your templates. Please note that these will only work when logged in and only for that person who is logged in.


So, what is this good for?

You may want to show a company Logo in the template when they have logged in for example. This is perfect for this.