![]() |
Validating options and custom fields |
Post Reply ![]() |
Author | |
gjk2701 ![]() Newbie ![]() Joined: 12-April-2007 Location: Canada Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 21-January-2008 at 2:45pm |
Hi,
I'm hoping for some advice on the best way to apply some validation to options and custom fields. My situation is this: I have an option for personalization with two choices, no and yes. I then have a custom field for entering the personalization name. If the customer chooses yes to personalization, they enter the name in the custom field and all is well. However, if they select no to personalization, there is currently nothing stopping them from still entering a name to be embroidered in the custom field and submitting the order (without accepting the $10 additional charge). Make sense? I can handle this easily in a simple web page with an onchange event on the select list and a javascript function to control the custom field, but I am wondering what the best approach to this within the PC framework would be. Any ideas? thanks in advance, gjk |
|
![]() |
|
M Robles ![]() Groupie ![]() Joined: 13-July-2006 Location: United States Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Conflict management module would be a good start
|
|
![]() |
|
gjk2701 ![]() Newbie ![]() Joined: 12-April-2007 Location: Canada Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Thanks, but I am not using BTO - would be overkill for my simple personalization options. I have handled it through javascript by editing the asp code to add the onchange calls where needed - just wondered if someone had a more elegant/scalable solution for the base product.
|
|
![]() |
|
bluedella ![]() Newbie ![]() Joined: 09-January-2008 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
any luck with this--I have the same prob
|
|
![]() |
|
gjk2701 ![]() Newbie ![]() Joined: 12-April-2007 Location: Canada Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I handled it through javascript/asp, making the entry field disabled unless the "yes" option was chosen. nothing too fancy or elegant but works well enough, I'm happy to share it with you if you like.
|
|
![]() |
|
bluedella ![]() Newbie ![]() Joined: 09-January-2008 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
I would apreciate it--thanks
|
|
![]() |
|
LaBrigitte ![]() Newbie ![]() Joined: 30-October-2009 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Can you please share with me as well? I'm having the same problem. Thanks! |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |