I'm designing checkout with OPT, and am wondering if there's any way to get the %prompt_foo% tokens to render different text? I don't want to simply replace them with HTML as I'd still like the form validation to work correctly (unfilled required fields appearing in red).
(2004/04/23)Are you asking if it's possible for those fields to display some label other than the standard field label? They can't. To change the text you would need to replace the token with the html. However, you can still get the form validation by adding the conditionals in as well. Each field has a variable indicating if it is "invalid" which is based on the field name. It is simply the field name with '_invalid' appended to it. For example, the name for the "shipping last name" is 'ShipLastName' and the variable which will have a value of 1 if it is invalid is 'g.ShipLastName_invalid'.
So, for example, if you wanted to take out the %prompt_shipfax% field and replace it with "Address Line 2" you would remove the %prompt_shipfax% token and replace it with:
%begin_if|g.ShipFax_invalid|%
Address Line 2:
%else%
Address Line 2:
%end_if%
Last update: 2004-12-10 09:36
Author: Support
Revision: 1.0
You cannot comment on this entry
Most Recent FAQ Entries: 
- Alternate ways to display the product and attribute data ... (2008-09-02 18:40)
- Adding both "Add All to Basket" and "Add to ... (2008-09-01 09:46)
- When adding a product to the basket from an ... (2008-08-27 19:02)
- I have the module configured to add the key ... (2008-08-13 14:50)
- What is the format for the htaccess file if ... (2008-08-12 14:50)
Top 10 
- 2921 views:
Adding Tokens to Evaluate Expressions - 2852 views:
Is there a way to "Limit" the number of ... - 2775 views:
Why won't you call me for technical support? I ... - 2665 views:
Are license keys valid for more than one store? ... - 2566 views:
I'm trying to enter a license key and get ... - 2555 views:
How do I install a module? - 2397 views:
How do I check for a module upgrade? - 2363 views:
How can display and change the parameters of an ... - 2210 views:
The total on my checkout pages are not correct. ... - 2011 views:
I have select and radio type attributes in my ...
















