Results 1 to 3 of 3

Thread: Arrange display of Custom Fields ?

  1. #1

    Question Arrange display of Custom Fields ?

    Is there a way to arrange the display of custom fields in Dynamics?

    For example:

    Right now I have created 10 custom fields. I see the option to display either above the message or below the message. And The output looks like this currently with the option above the message selected:

    Title of Entry
    Custom Field 1
    Custom Field 2
    Custom Field 3
    Custom Field 4
    Custom Field 5
    Custom Field 6
    Custom Field 7
    Custom Field 8
    Custom Field 9
    Custom Field 10
    Message Text
    attachments


    What I would like to do is change the way the above fields are displayed and add in some Section dividers like below.



    .............................Title of Entry
    .............................Custom Field 1

    SECTION NAME 1---
    Custom Field 2 ............................. Custom Field 3
    Custom Field 4 ............................. Custom Field 5

    SECTION NAME 2--
    Custom Field 6
    ---Custom Field 7
    ---Custom Field 8

    SECTION NAME 3--
    Custom Field 9
    Custom Field 10

    SECTION NAME 4--
    Message Text
    attachments


    Is this possible? How would I go about doing this?


    Thanks.
    Kether

  2. #2
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default

    You could look in your 'ADV_DYNA_SHOWENTRY' template for this code:
    Code:
    			<vb:if condition="$customfieldbits['above_message']">
    				<div style="padding-bottom: {vb:stylevar padding}">
    					<vb:each from="customfieldbits[above_message]" value="field">
    						<dl class="stats">
    							<dt>{vb:raw field.title}</dt>
    							<dd>{vb:raw field.value}</dd>
    						</dl>
    					</vb:each>
    				</div>
    			</vb:if>
    And then add something like the code in red below:
    Code:
    <vb:if condition="$customfieldbits['above_message']">
    	<div style="padding-bottom: {vb:stylevar padding}">
    		<vb:each from="customfieldbits[above_message]" value="field">
    		
    			<vb:if condition="$field['fieldid'] == 1">
    				<div>Section Name 1</div>
    			<vb:elseif condition="$field['fieldid'] == 3" />
    				<div>Section Name 2</div>
    			<vb:elseif condition="$field['fieldid'] == 5" />
    				<div>Section Name 3</div>
    			</vb:if>
    
    			<dl class="stats">
    				<dt>{vb:raw field.title}</dt>
    				<dd>{vb:raw field.value}</dd>
    			</dl>
    		</vb:each>
    	</div>
    </vb:if>
    And that would help split them up into sections. It would be possible to put them in a <table> and have rows of 2, but that would get a little more complex.
    Frequently Asked Questions
    CMPS Users Manual

    For vBadvanced software assistance, please use the support forums.
    Unsolicted PMs, IMs, and email will not be responded to.
    If you have a non-software related question or problem with your account, please submit a support ticket.

  3. #3

    Default

    Brilliant. Thank you for your help, Brian.

    Kether

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Search custom fields & Display results modules
    By dinatius in forum Module & Modification Discussion & Requests
    Replies: 0
    Last Post: 02-06-2008, 12:52 PM
  2. Double custom fields display on showentry
    By kirkus-tat in forum Troubleshooting & Problems
    Replies: 2
    Last Post: 11-05-2007, 02:06 PM
  3. Custom Fields Display Order?
    By edfig in forum Troubleshooting & Problems
    Replies: 9
    Last Post: 09-21-2007, 02:17 PM
  4. Upcoming events: display custom calendar fields?
    By trgreen in forum "How Do I..." Questions
    Replies: 1
    Last Post: 06-16-2007, 10:01 AM
  5. Arranging display of custom fields
    By Polo in forum "How Do I..." Questions
    Replies: 7
    Last Post: 02-03-2005, 11:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •