| View previous topic :: View next topic |
| Author |
Message |
gorostizaj Quite a regular
Joined: 11 Apr 2008 Posts: 11 Location: USA
|
| Posted: Tue Jun 10, 2008 5:35 pm Post subject: Signature shows blank line for unpopulated AD field |
|
|
Hello,
I thought empty AD fields are ignored by the signature? We have a user that does not have a title in AD. The signature is set to insert the title on the second line. For this user with no title, the signature inserts a blank line. Can this be avoided? There is no pre or post text next to the title.
Thank you. |
|
| Back to top |
|
 |
Mathias Kiesler Certified Professional

Joined: 26 Mar 2007 Posts: 183 Location: Osnabrücker Land
|
| Posted: Tue Jun 10, 2008 6:55 pm Post subject: |
|
|
Hello,
just click 'Insert conditional text' in Cockpit signature menu.
Have a look at this posting, please. _________________ with kind regards / Mit freundlichen Grüßen
Mathias Kiesler | www.emailsignature.com mk(at)emailsignature.com |  |
|
| Back to top |
|
 |
gorostizaj Quite a regular
Joined: 11 Apr 2008 Posts: 11 Location: USA
|
| Posted: Wed Jun 18, 2008 3:19 pm Post subject: |
|
|
Can you give us an example of how the code should look when not using pretext? The Insert conditional text button inserts Mobile: before the field. I have tried to remove this pretext but it breaks the code. For example, on the second line of the signature I need Title. If the user does not have a title in AD the line should be removed.
Thank you. |
|
| Back to top |
|
 |
Jesper Frier Certified Professional


Joined: 09 Sep 2006 Posts: 1940 Location: Stoevring, Denmark
|
| Posted: Wed Jun 18, 2008 5:04 pm Post subject: Insert conditional text |
|
|
Not quite sure what you want to show ...
Example you should paste in code view with AD as data source:
| Code: | | {$$NULL(Title)$$VALUE(Title: ((Title))<BR>)$$} |
Or rename your title field to match your data source.
Result:
| Quote: | | Title: IT administrator |
If 'IT administrator' is your field content in your data source.
Does it make sense? Or please post your HTML code ... _________________ </Jesper> | Test Email Signature | Showcase |  |
|
| Back to top |
|
 |
gorostizaj Quite a regular
Joined: 11 Apr 2008 Posts: 11 Location: USA
|
| Posted: Thu Jun 19, 2008 12:00 am Post subject: |
|
|
Hello,
Your example has the word "Title:" before "IT administrator". We do not want any text before "IT administrator".
As it is below, If a user does not have a title in AD, an empy line is shown between their name and company.
Thank you.
Here is the html code:
<DIV><FONT style="FONT-WEIGHT: 700; FONT-SIZE: 8.5pt; COLOR: #000000; FONT-FAMILY: 'Trebuchet MS'">((First_name)) ((Last_name))</FONT><BR><FONT style="FONT-SIZE: 8.5pt; COLOR: #000000; FONT-FAMILY: 'Trebuchet MS'; LETTER-SPACING: 1px">((Title))</FONT><BR><FONT style="FONT-SIZE: 8.5pt; COLOR: #000000; FONT-FAMILY: 'Trebuchet MS'">((Company))</FONT><BR><FONT style="FONT-SIZE: 8.5pt; COLOR: #000000; FONT-FAMILY: 'Trebuchet MS'; LETTER-SPACING: 1px">((Address))<BR>((City)), ((State/Province)) ((ZIP/Postal_Code))<BR>{$$NULL(Telephone_number)$$VALUE(Tel ((Telephone_number)) )$$}<BR>{$$NULL(Fax_number)$$VALUE(Fax ((Fax_number)) )$$}<BR>{$$NULL(Mobile_number)$$VALUE(Cell ((Mobile_number)) )$$}</FONT><BR></DIV>
<DIV style="MARGIN-TOP: 10px; FONT-WEIGHT: bold; FONT-SIZE: smaller; MARGIN-BOTTOM: 0px; COLOR: #003359; FONT-FAMILY: Trebuchet MS; LETTER-SPACING: 2px"> </DIV><BR> |
|
| Back to top |
|
 |
Jesper Frier Certified Professional


Joined: 09 Sep 2006 Posts: 1940 Location: Stoevring, Denmark
|
| Posted: Thu Jun 19, 2008 6:14 am Post subject: |
|
|
Enter code view (your code is from design view).
Simply replace ...
... with this:
| Code: | | {$$NULL(Title)$$VALUE(((Title))<BR>)$$} |
Delete '<BR>' if you want to keep the line. _________________ </Jesper> | Test Email Signature | Showcase |  |
|
| Back to top |
|
 |
gorostizaj Quite a regular
Joined: 11 Apr 2008 Posts: 11 Location: USA
|
| Posted: Thu Jun 19, 2008 3:49 pm Post subject: |
|
|
Hello, in the code I replaced ((Title)) for {$$NULL(Title)$$VALUE(((Title))<BR>)$$}.
I get an error now. "The field (Title is not a merge field from the databse or the fields could be case sensitive. You cannot preview the signature before this is corrected." |
|
| Back to top |
|
 |
Jesper Frier Certified Professional


Joined: 09 Sep 2006 Posts: 1940 Location: Stoevring, Denmark
|
| Posted: Thu Jun 19, 2008 4:58 pm Post subject: |
|
|
If 'Title' is not a field name in your data source, just replace the name with the name of the field containing your users title information.
But you used 'Title' in the code you provided earlier ...  _________________ </Jesper> | Test Email Signature | Showcase |  |
|
| Back to top |
|
 |
gorostizaj Quite a regular
Joined: 11 Apr 2008 Posts: 11 Location: USA
|
| Posted: Thu Jun 19, 2008 5:12 pm Post subject: |
|
|
Yes, Title is a field in our data source. We use Active Directory.
This is the original code that works but leaves a blank line in the signature if the users does not have a Title in AD:
<DIV><FONT style="FONT-WEIGHT: 700; FONT-SIZE: 8.5pt; COLOR: #000000; FONT-FAMILY: 'Trebuchet MS'">((First_name)) ((Last_name))</FONT><BR><FONT style="FONT-SIZE: 8.5pt; COLOR: #000000; FONT-FAMILY: 'Trebuchet MS'; LETTER-SPACING: 1px">((Title))</FONT><BR><FONT style="FONT-SIZE: 8.5pt; COLOR: #000000; FONT-FAMILY: 'Trebuchet MS'">((Company))</FONT><BR><FONT style="FONT-SIZE: 8.5pt; COLOR: #000000; FONT-FAMILY: 'Trebuchet MS'; LETTER-SPACING: 1px">((Address))<BR>((City)), ((State/Province)) ((ZIP/Postal_Code))<BR>{$$NULL(Telephone_number)$$VALUE(Tel ((Telephone_number)) )$$}<BR>{$$NULL(Fax_number)$$VALUE(Fax ((Fax_number)) )$$}<BR>{$$NULL(Mobile_number)$$VALUE(Cell ((Mobile_number)) )$$}<BR></FONT></DIV><BR>
This is the code with Title replaced as you sudgested but it does not work:
<DIV><FONT style="FONT-WEIGHT: 700; FONT-SIZE: 8.5pt; COLOR: #000000; FONT-FAMILY: 'Trebuchet MS'">((First_name)) ((Last_name))</FONT><BR><FONT style="FONT-SIZE: 8.5pt; COLOR: #000000; FONT-FAMILY: 'Trebuchet MS'; LETTER-SPACING: 1px">{$$NULL(Title)$$VALUE(((Title))<BR>)$$}</FONT><BR><FONT style="FONT-SIZE: 8.5pt; COLOR: #000000; FONT-FAMILY: 'Trebuchet MS'">((Company))</FONT><BR><FONT style="FONT-SIZE: 8.5pt; COLOR: #000000; FONT-FAMILY: 'Trebuchet MS'; LETTER-SPACING: 1px">((Address))<BR>((City)), ((State/Province)) ((ZIP/Postal_Code))<BR>{$$NULL(Telephone_number)$$VALUE(Tel ((Telephone_number)) )$$}<BR>{$$NULL(Fax_number)$$VALUE(Fax ((Fax_number)) )$$}<BR>{$$NULL(Mobile_number)$$VALUE(Cell ((Mobile_number)) )$$}<BR></FONT></DIV><BR> |
|
| Back to top |
|
 |
Jesper Frier Certified Professional


Joined: 09 Sep 2006 Posts: 1940 Location: Stoevring, Denmark
|
| Posted: Thu Jun 19, 2008 5:31 pm Post subject: |
|
|
I learn everyday ...
Try this ... (added space before field name). Save and then preview.
| Code: | | {$$NULL(Title)$$VALUE( ((Title))<BR>)$$} |
Works in my AD. _________________ </Jesper> | Test Email Signature | Showcase |  |
|
| Back to top |
|
 |
gorostizaj Quite a regular
Joined: 11 Apr 2008 Posts: 11 Location: USA
|
| Posted: Thu Jun 19, 2008 6:25 pm Post subject: |
|
|
No errors now but a blank line still appears for users that do not have a Title in AD. I tried it with and without the <BR>.
I am using the Preview window to see the space still exists.
Thanks |
|
| Back to top |
|
 |
gorostizaj Quite a regular
Joined: 11 Apr 2008 Posts: 11 Location: USA
|
| Posted: Thu Jun 19, 2008 6:42 pm Post subject: |
|
|
Nover mind. I found I had an extra <BR>.
Thank you for your help!  |
|
| Back to top |
|
 |
|