I am trying to implement Graham Bradley's 'User Input Format' routine on v9.05, to correctly format the names/addresses, and have noticed a problem. It works as expected on every field apart from 'InvoiceAddress4'.
I noticed an old post (#5) here regarding v7 which exhibited the exact same problem. Whatever you add to the end of the 'Invoice Address 4' <input type = /> block, it is substituted with the original code when you upload, which is why it doesn't work. So on upload (if you view the checkout page source):
<input type="text" name="INVOICEADDRESS4" size="40" maxlength="200" value="<Actinic:Variable Name="InvoiceAddress4"/>" onblur="format(this,'capitals')"/>
within 9.05's design view becomes :
<input type="text" name="INVOICEADDRESS4" size="40" maxlength="200" value="<Actinic:Variable Name="InvoiceAddress4"/>" />
on the uploaded checkout page.
Norman's style="text-transform:capitalize"' method (as per the v7 thread) works fine, but if you try and use the onblur= javascript method, it is stripped out by Actinic on upload (but only for this field)
This is the working code fragment using Norman's method (which gets uploaded correctly):
The onblur= method works fine for every other field, and the CSS method just looks inconsistent on the site for a single field, as it behaves differently when you type.
However, I have found that if you remove the following block markers:
<Actinic:LOCATION TYPE='INVOICEADDRESS4'>
</Actinic:LOCATION>
and leave the rest of the code as is, then it works as expected and the onblur= source changes are uploaded normally, and are not stripped out.
Following the lengthy preamble (), my question is as follows - What are the implications of taking those two lines out of the code, and is it going to be detrimental to Actinic v9.0.5 itself?
That block is obviously doing something there, but what?
I noticed an old post (#5) here regarding v7 which exhibited the exact same problem. Whatever you add to the end of the 'Invoice Address 4' <input type = /> block, it is substituted with the original code when you upload, which is why it doesn't work. So on upload (if you view the checkout page source):
<input type="text" name="INVOICEADDRESS4" size="40" maxlength="200" value="<Actinic:Variable Name="InvoiceAddress4"/>" onblur="format(this,'capitals')"/>
within 9.05's design view becomes :
<input type="text" name="INVOICEADDRESS4" size="40" maxlength="200" value="<Actinic:Variable Name="InvoiceAddress4"/>" />
on the uploaded checkout page.
Norman's style="text-transform:capitalize"' method (as per the v7 thread) works fine, but if you try and use the onblur= javascript method, it is stripped out by Actinic on upload (but only for this field)
This is the working code fragment using Norman's method (which gets uploaded correctly):
Code:
<tr>
<td>
<actinic:block if="%3cactinic%3avariable%20name%3d%22InvoicePrompt007Required%22%20%2f%3e" /><span class="actrequired"></actinic:block>
<Actinic:Variable Name="InvoicePrompt007"/>
<actinic:block if="%3cactinic%3avariable%20name%3d%22InvoicePrompt007Required%22%20%2f%3e" />*</span></actinic:block>
</td>
<Actinic:LOCATION TYPE='INVOICEADDRESS4'>
<td>
<input type="text" style="text-transform:capitalize" name="INVOICEADDRESS4" size="40" maxlength="200" value="<Actinic:Variable Name="InvoiceAddress4"/>" />
</td>
</Actinic:LOCATION>
</tr>
However, I have found that if you remove the following block markers:
<Actinic:LOCATION TYPE='INVOICEADDRESS4'>
</Actinic:LOCATION>
and leave the rest of the code as is, then it works as expected and the onblur= source changes are uploaded normally, and are not stripped out.
Following the lengthy preamble (), my question is as follows - What are the implications of taking those two lines out of the code, and is it going to be detrimental to Actinic v9.0.5 itself?
That block is obviously doing something there, but what?
Comment