| View previous topic :: View next topic |
| Author |
Message |
mthao Quite a regular
Joined: 10 Sep 2007 Posts: 16
|
| Posted: Tue Dec 04, 2007 1:54 pm Post subject: getting rid of empty lines when using conditional text |
|
|
Hello!
Im having a part of a signature looking like this:
{$$NULL(Other_telephone_number)$$VALUE(Telefon: ((Other_telephone_number)) )$$}
{$$NULL(Mobile_number)$$VALUE(Mobil: ((Mobile_number)) )$$}
{$$NULL(Fax_number)$$VALUE(Fax: ((Fax_number)) )$$}
if for example one user doesnt have a Mobile_number the output gets:
1234-567890
1234-567891
but I would like it to be:
1234-567890
1234-567891
IE. removing the extra emtpy line. If I recall correctly that worked in an earlier version but Im not sure.
Any suggestions?
Thanks in advance
Mattias |
|
| Back to top |
|
 |
Dave Culley Certified Professional


Joined: 02 May 2007 Posts: 78 Location: London
|
| Posted: Tue Dec 04, 2007 2:07 pm Post subject: Conditional Formatting |
|
|
Hi,
This is possible, you will need to keep all the coding on the same line without a <br> tag between them and the line spacing should disappear when no mobile number is present.
Thanks
Dave Culley |
|
| Back to top |
|
 |
mthao Quite a regular
Joined: 10 Sep 2007 Posts: 16
|
| Posted: Tue Dec 04, 2007 2:23 pm Post subject: |
|
|
I dont know if I did something wrong but that resulted in:
1234-567890 1234-567891
I still want the present information to show up on separate rows.
Mattias |
|
| Back to top |
|
 |
Dave Culley Certified Professional


Joined: 02 May 2007 Posts: 78 Location: London
|
| Posted: Tue Dec 04, 2007 2:27 pm Post subject: |
|
|
| Please try it with a single <br> between the lines, this should sepperate them. |
|
| Back to top |
|
 |
mthao Quite a regular
Joined: 10 Sep 2007 Posts: 16
|
| Posted: Tue Dec 04, 2007 2:43 pm Post subject: |
|
|
This is copied from the Code View:
<P><EM>((Title))<BR>((XtensionAttrib6))</EM><BR>{$$NULL(Other_telephone_number)$$VALUE(Telefon: ((Other_telephone_number)) )$$}<BR>{$$NULL(Mobile_number)$$VALUE(Mobil: ((Mobile_number)) )$$}<BR>{$$NULL(Fax_number)$$VALUE(Fax: ((Fax_number)) )$$}<BR>Email: ((E-mail))<BR><BR></P> |
|
| Back to top |
|
 |
Dave Culley Certified Professional


Joined: 02 May 2007 Posts: 78 Location: London
|
| Posted: Tue Dec 04, 2007 2:54 pm Post subject: |
|
|
Please try this
<P><EM>((Title))<BR>((XtensionAttrib6))</EM><BR>{$$NULL(Other_telephone_number)$$VALUE(Telefon: ((Other_telephone_number))<BR> )$$}{$$NULL(Mobile_number)$$VALUE(Mobil: ((Mobile_number))<BR> )$$}{$$NULL(Fax_number)$$VALUE(Fax: ((Fax_number)) )$$}<BR>Email: ((E-mail))<BR><BR></P>
Please let me know if this is better.
Thanks |
|
| Back to top |
|
 |
mthao Quite a regular
Joined: 10 Sep 2007 Posts: 16
|
| Posted: Tue Dec 04, 2007 2:57 pm Post subject: |
|
|
Sadly still have the same problem  |
|
| Back to top |
|
 |
Jesper Frier Certified Professional


Joined: 09 Sep 2006 Posts: 1940 Location: Stoevring, Denmark
|
| Posted: Tue Dec 04, 2007 6:27 pm Post subject: Conditional text |
|
|
This is the code from templates examples with your fields:
| Code: | {$$NULL(Other_telephone_number)$$VALUE(Telefon: ((Other_telephone_number))<br> )$$}
{$$NULL(Mobile_number)$$VALUE(Mobil: ((Mobile_number))<br> )$$}
{$$NULL(Fax_number)$$VALUE(Fax: ((Fax_number))<br> )$$} |
OK?  |
|
| Back to top |
|
 |
mthao Quite a regular
Joined: 10 Sep 2007 Posts: 16
|
| Posted: Wed Dec 05, 2007 7:27 am Post subject: |
|
|
yes, that for some kind of reason worked... but isnt it the same way that Dave tried to solve it? ie adding the <br> tag inside the $$Value()?
Thanks though :D |
|
| Back to top |
|
 |
|