Privacy Policy

martynalner
2012-02-14T12:59:36Z
How can I produce the following:-

Direct Line: 01202 123456 Mobile: 07710 312589

Where the text "Direct Line:" or "Mobile:" is not displayed when there is a blank number in the field in Active Directory?

I'm using the 'telephonenumber' field for the Direct Line and 'mobile' for the mobile number, and the print directive looks like this:-

<b>Direct Line: </b>{#Print Class="OA" Name="telephoneNumber" IfMatch="telephoneNumber"} <b>Mobile: </b> {#Print Class="OA" Name="mobile" IfMatch="mobile"}<br><br>

Any help gratefully received.

Martyn Alner

franzk
2012-02-14T15:57:35Z
Hi Martyn,

>How can I produce the following: - Direct Line: 01202 123456 Mobile: 07710 312589 - Where the text "Direct Line:" or "Mobile:" is not displayed when there is a blank number in the field in Active Directory?

try this:

{#Print Class="OA" Name="telephoneNumber" Pattern=".+" IfMatch="<b>Direct Line:</b> $&"}{#Print Class="OA" Name="mobile" Pattern=".+" IfMatch=" <b>Mobile:</b> $&"}<br><br>

-Franz

martynalner
2012-02-14T16:16:07Z
Excellent, that works perfectly. Many thanks.

Martyn

Similar Topics