Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListEmpty FieldsEmpty Fields
Previous
 
Next
New Post
9/23/2014 7:18 AM
 

Hi. I've been looking at the forum and issues but not seeing any info about this. I often have forms with records that have unpopulated fields. When this is the case and the list is rendered, the HTML does not close properly for those empty fields. Therefore, if my template has <strong>[FIELD]</strong> but that particular field is null, then the </strong> isn't generated and the style is applied to the remaining records. I don't think this happens with any of the built-in templates so I'm wondering what I'm missing. Any thoughts? Thanks.

 
New Post
9/23/2014 7:22 AM
 
Could you post the template?
 
New Post
9/23/2014 7:46 AM
 

Yes. I've resolved it either by populating the fields with a space or by adding <div style="clear: both;"></div> to the end of the template. I'm not sure which did the trick.

<div class="dnnGridItem">[UDT:EditLink] <h2>[First Name][ ][Middle Initial][ ][Last Name][ ][Credentials]</h2> <strong>[Title]</strong> <div><span class="imgLeft imgBorder">[Image]</span>[Bio]</div> </div> <div style="clear: both;"></div>


 
New Post
9/23/2014 10:20 AM
 

So it seems it's not quite resolved. Now the content panes are affected. I cannot move the F&L module around unless in layout mode and the content panes are affected. I'll investigate further later.

 
New Post
9/23/2014 11:40 AM
 
Lisa,
You might need to add XSL:IF statements to the XSLT that you are generating.
For example:
xsl:if test="udt:PrimaryPicture_UDT_Url != ''"
img src="{udt:PrimaryPicture_UDT_Url}" style="float:right;margin-left:8px;margin-bottom:8px;" /
/xsl:if

The lines above need opening and closing tags. It checks whether that field is blank or not and only renders the code when NOT blank.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListEmpty FieldsEmpty Fields


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out