Skip to main content
Nintex Community Menu Bar
Question

Remove Blank Lines when Conditionally displaying fields

  • July 9, 2024
  • 2 replies
  • 1 view

Forum|alt.badge.img+3

Is there a way to remove the blank lines when conditionally rendering fields?  Here is my template config:

{{OtherStreet}} {{OtherCity}}{{#OtherCity}},{{/OtherCity}} {{OtherState}} {{OtherPostalCode}} {{#Fax}}Fax: {{/Fax}} {{Fax}} {{#HomePhone}}Home Phone: {{/HomePhone}}{{HomePhone}} {{#OtherPhone}}Other Phone: {{/OtherPhone}}{{OtherPhone}} {{#AssistantName}}Assistant: {{/AssistantName}}{{AssistantName}} {{#AssistantPhone}}Asst. Phone: {{/AssistantPhone}}{{AssistantPhone}}<br>
This topic has been closed for replies.

2 replies

Forum|alt.badge.img+17
  • Nintex Employee
  • July 9, 2024

Move the condition close statement outside the field name and carriage return for that particular field.   Something like this: 

{{#Fax}}Fax: {{Fax}} {{/Fax}}{{#HomePhone}}Home Phone:{{HomePhone}} {{/HomePhone}}{{#OtherPhone}}Other Phone: {{OtherPhone}} {{/OtherPhone}} 


Forum|alt.badge.img+3

Works like a champ…thanks!