Print Page | Close Window

Validating options and custom fields

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=1320
Printed Date: 13-October-2025 at 9:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Validating options and custom fields
Posted By: gjk2701
Subject: Validating options and custom fields
Date 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



Replies:
Posted By: M Robles
Date Posted: 24-January-2008 at 10:43am
Conflict management module would be a good start


Posted By: gjk2701
Date Posted: 24-January-2008 at 1:12pm
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.


Posted By: bluedella
Date Posted: 07-May-2008 at 10:00am
any luck with this--I have the same prob


Posted By: gjk2701
Date Posted: 07-May-2008 at 10:06am
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.


Posted By: bluedella
Date Posted: 07-May-2008 at 10:32am
I would apreciate it--thanks


Posted By: LaBrigitte
Date Posted: 30-October-2009 at 2:18pm
Hello,

Can you please share with me as well?  I'm having the same problem.

Thanks!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net