I need to have a field for account customers only to add a Purchase Order number. This field need to be visible and required for account customers, but invisible and therefore not required for all other customers.
I've used the General User Definable 1 field for this purpose, and have hidden it from non-account customers with a NOTINB2B tag as follows:
<Actinic:NOTINB2B><!--</Actinic:NOTINB2B>
<span class="actregular"><b><Actinic:Variable Name="GeneralTitle"/></b></span>
<br /><br />
<table border="0" width="<actinic:variable name="ACTSTDWIDTH" />" cellspacing="2" cellpadding="3" class="checkout">
<actinic:variable name="CheckoutPrompt" value="General User Definable 1" if="%3cactinic%3avariable%20name%3d%22GeneralPrompt000Visible%22%20%2f%3e" />
<actinic:variable name="CheckoutPrompt" value="General User Definable 2" if="%3cactinic%3avariable%20name%3d%22GeneralPrompt001Visible%22%20%2f%3e" />
<actinic:variable name="CheckoutPrompt" value="General User Definable 3" if="%3cactinic%3avariable%20name%3d%22GeneralPrompt002Visible%22%20%2f%3e" />
</table>
<br />
<hr size="1" width="<actinic:variable name="ACTSTDWIDTH" />" align="left" />
<Actinic:NOTINB2B>--></Actinic:NOTINB2B>
However, there's still a problem. If I select General User Definable 1 as a required field in Design\Text, it becomes required for both account customers and non-account customers - with the result that non-account customers are not able to proceed as they haven't filled in a required field that is invisible to them!
Is there any way to make User Definable 1 visible ONLY to account customers, and also to make it a required field ONLY for account customers?
Suggestions gratefully received!
I've used the General User Definable 1 field for this purpose, and have hidden it from non-account customers with a NOTINB2B tag as follows:
<Actinic:NOTINB2B><!--</Actinic:NOTINB2B>
<span class="actregular"><b><Actinic:Variable Name="GeneralTitle"/></b></span>
<br /><br />
<table border="0" width="<actinic:variable name="ACTSTDWIDTH" />" cellspacing="2" cellpadding="3" class="checkout">
<actinic:variable name="CheckoutPrompt" value="General User Definable 1" if="%3cactinic%3avariable%20name%3d%22GeneralPrompt000Visible%22%20%2f%3e" />
<actinic:variable name="CheckoutPrompt" value="General User Definable 2" if="%3cactinic%3avariable%20name%3d%22GeneralPrompt001Visible%22%20%2f%3e" />
<actinic:variable name="CheckoutPrompt" value="General User Definable 3" if="%3cactinic%3avariable%20name%3d%22GeneralPrompt002Visible%22%20%2f%3e" />
</table>
<br />
<hr size="1" width="<actinic:variable name="ACTSTDWIDTH" />" align="left" />
<Actinic:NOTINB2B>--></Actinic:NOTINB2B>
However, there's still a problem. If I select General User Definable 1 as a required field in Design\Text, it becomes required for both account customers and non-account customers - with the result that non-account customers are not able to proceed as they haven't filled in a required field that is invisible to them!
Is there any way to make User Definable 1 visible ONLY to account customers, and also to make it a required field ONLY for account customers?
Suggestions gratefully received!
Comment