| View previous topic :: View next topic |
| Author |
Message |
robert.connor Just can't stay away
Joined: 13 Feb 2008 Posts: 40
|
| Posted: Wed Sep 03, 2008 9:49 am Post subject: Conditional text |
|
|
I am having some problems using the 'Insert Conditional text' function. What I am trying to do is exclude the lertter M: for mobile number when the users active directory does not have a mobile for that user. The text I insert is: However, the M: still remains though.
{$$NULL(Mobile_number)$$VALUE(M: ((Mobile_number))<br> )$$} but the M: remains.
Can you please advise
Many thanks |
|
| Back to top |
|
 |
Dave Culley Certified Professional


Joined: 02 May 2007 Posts: 78 Location: London
|
| Posted: Wed Sep 03, 2008 10:18 am Post subject: |
|
|
Hi Robert,
This code seems correct, can you confirm this is the text out of the code view, not out of the design view? If this is from the design view, you will need to remove it and add it to the code view to ensure there is no random code in the middle of this that would stop it working.
Thanks |
|
| Back to top |
|
 |
Jesper Frier Certified Professional


Joined: 09 Sep 2006 Posts: 1940 Location: Stoevring, Denmark
|
| Posted: Wed Sep 03, 2008 10:33 am Post subject: |
|
|
Please paste this code in code view:
| Code: | | {$$NULL(Mobile_number)$$VALUE(M: ((Mobile_number))<BR>)$$} |
Notice that space is removed after <BR> ... If you click the button in Cockpit, you will get above code without the space. _________________ </Jesper> | Test Email Signature | Showcase |  |
|
| Back to top |
|
 |
robert.connor Just can't stay away
Joined: 13 Feb 2008 Posts: 40
|
| Posted: Wed Sep 03, 2008 12:46 pm Post subject: |
|
|
Hi Jesper
Here is the code view:
<HR align=left width="42%" color=#333399 SIZE=1>
<FONT face=Arial><STRONG><FONT color=#333399><FONT size=2>((Display_name)) ((Pager))<STRONG> <FONT color=#ff6600>| </FONT></STRONG>((Description))</STRONG></FONT>
<BR><BR><FONT size=2><FONT color=#ff6600>T:</FONT> ((Telephone_number))
<BR><FONT color=#ff6600>F:</FONT> ((Fax_number)) <BR><FONT color=#ff6600>M: </FONT> {$$NULL(Mobile_number)$$VALUE(M: ((Mobile_number))<br> )$$}
<BR><BR><STRONG><U>((E-mail))<BR>((Web_page))</U></STRONG>
<BR><BR>((Company))<STRONG> <FONT color=#ff6600>| </FONT></STRONG>1 Danbury Court<STRONG> <FONT color=#ff6600>| </FONT></STRONG>Linford Wood<STRONG>
<FONT color=#ff6600>| </FONT></STRONG>Milton Keynes<STRONG> <FONT color=#ff6600>| </FONT></STRONG>((ZIP/Postal_Code))<STRONG> <FONT color=#ff6600>| </FONT></STRONG>England
<BR><FONT color=#333399>Global scanning recognition & processing solutions for the public, private and not for profit sectors</FONT>
<BR><STRONG><FONT color=#ff6600>Examinations<FONT color=#ff6600> | </FONT>Elections<FONT color=#ff6600> | </FONT>Census<FONT color=#ff6600> | </FONT>Registration
<FONT color=#ff6600> | </FONT>Transactional Document Processing</FONT></FONT></FONT></FONT></STRONG>
I have been trying a few options, but this is how I inserted it originally.
Thanks |
|
| Back to top |
|
 |
Jesper Frier Certified Professional


Joined: 09 Sep 2006 Posts: 1940 Location: Stoevring, Denmark
|
| Posted: Wed Sep 03, 2008 1:23 pm Post subject: |
|
|
Please use this code:
| Code: | <HR align=left width="42%" color=#333399 SIZE=1>
<FONT face=Arial><STRONG><FONT color=#333399><FONT size=2>((Display_name)) ((Pager))<STRONG> <FONT color=#ff6600>| </FONT></STRONG>((Description))</STRONG></FONT>
<BR><BR><FONT size=2><FONT color=#ff6600>T:</FONT> ((Telephone_number))
<BR><FONT color=#ff6600>F:</FONT> ((Fax_number)) <BR><FONT color=#ff6600>M: </FONT> {$$NULL(Mobile_number)$$VALUE(M: ((Mobile_number))<BR>)$$}
<BR><BR><STRONG><U>((E-mail))<BR>((Web_page))</U></STRONG>
<BR><BR>((Company))<STRONG> <FONT color=#ff6600>| </FONT></STRONG>1 Danbury Court<STRONG> <FONT color=#ff6600>| </FONT></STRONG>Linford Wood<STRONG>
<FONT color=#ff6600>| </FONT></STRONG>Milton Keynes<STRONG> <FONT color=#ff6600>| </FONT></STRONG>((ZIP/Postal_Code))<STRONG> <FONT color=#ff6600>| </FONT></STRONG>England
<BR><FONT color=#333399>Global scanning recognition & processing solutions for the public, private and not for profit sectors</FONT>
<BR><STRONG><FONT color=#ff6600>Examinations<FONT color=#ff6600> | </FONT>Elections<FONT color=#ff6600> | </FONT>Census<FONT color=#ff6600> | </FONT>Registration
<FONT color=#ff6600> | </FONT>Transactional Document Processing</FONT></FONT></FONT></FONT></STRONG> |
Is 'Mobile number' now conditional? _________________ </Jesper> | Test Email Signature | Showcase |  |
|
| Back to top |
|
 |
robert.connor Just can't stay away
Joined: 13 Feb 2008 Posts: 40
|
| Posted: Wed Sep 03, 2008 2:02 pm Post subject: |
|
|
Hi Jesper
It did not work but I think if I just use the conditional text and remove the inserted text <FONT color=#ff6600>M: </FONT> which will remove the coloured M: however is there a way to add the above font formatting to the following condition: {$$NULL(Mobile_number)$$VALUE(M: ((Mobile_number))<BR>)$$} so that it modifies how the character looks.
This way the condition will look the same but will remove the M: if no mobile exits for the user.
Many thanks |
|
| Back to top |
|
 |
Jesper Frier Certified Professional


Joined: 09 Sep 2006 Posts: 1940 Location: Stoevring, Denmark
|
| Posted: Wed Sep 03, 2008 2:19 pm Post subject: |
|
|
Please post log file for the user you tested.
Help -> Diagnostics, right click user and select log file.
Then we take it from there ... _________________ </Jesper> | Test Email Signature | Showcase |  |
|
| Back to top |
|
 |
robert.connor Just can't stay away
Joined: 13 Feb 2008 Posts: 40
|
| Posted: Wed Sep 03, 2008 7:26 pm Post subject: |
|
|
If there is a simple way to modify the colour of the M: in the conditional text {$$NULL(Mobile_number)$$VALUE(M: ((Mobile_number))<BR>)$$} then the VALUE(M: is removed when the condition is used.
Many thanks |
|
| Back to top |
|
 |
robert.connor Just can't stay away
Joined: 13 Feb 2008 Posts: 40
|
| Posted: Wed Sep 03, 2008 7:33 pm Post subject: |
|
|
Hi Jesper
I think I have resolved this problem with the text <FONT color=#ff6600> {$$NULL(Mobile_number)$$VALUE(M: </FONT>((Mobile_number))<BR>)$$}
Appreciate all your help |
|
| Back to top |
|
 |
|