ASPX templates
Version 5.x > ASPX templates > Validation Error Message View modes: 
User avatar
Member
Member
jwilson-bostwicklaboratories - 4/19/2011 2:06:43 PM
   
Validation Error Message
Hello,

My company wanted to make the phone number a mandatory field in step 3 of the checkout process for our shopping cart web part. I was able to do this; however the error message that pops up when a phone number is not entered is, "ShoppingCartOrderAddresses.BillingPhoneErr."

I added these lines to the CMS.resx file but the error message did not change:

<data name="shoppingcartorderaddresses.billingphoneerr" xml:space="preserve">
<value>Please enter a valid phone number.</value>
</data>

Any help on figuring out why my error message is not displaying would be greatly appreciated.

Thanks,
Jon Wilson

User avatar
Member
Member
jwilson-bostwicklaboratories - 4/19/2011 3:01:23 PM
   
RE:Validation Error Message
For anyone interested, I found the answer in this thread:

http://devnet.kentico.com/Forums.aspx?forumid=17&threadid=5738

Adding text to the .resx file apparently does not change anything, so I had to add a new string to the UI Culture.

key: shoppingcartorderaddresses.billingphoneerr

Text: Please enter a valid phone number.


That worked wonders. Now if anyone can explain why adding that script to the .resx file did not work, I would appreciate it.

Thanks,
Jon