Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2005
    Location
    UK and Ireland
    Posts
    258
    Plugin Contributions
    1

    Default Mandatory Text Attribute

    Hi Zenners,

    Standard Zen Vs Javascript needed - seeking a solution to ensure that a Text Message attribute is entered mandatory by cients when they click ADD TO CART

    e.g.

    Enter your personal message here (Max 120 characters)...
    Message [##################################################]


    JavaScript we almost have working:

    ===============
    function checkMsg(thisForm) {
    var formName = thisForm.id;
    var elmt = document.getElementById(formName);
    var elmntVal = elmt.id[txt_5].value;
    if (elmntVal == "") {
    var agree=confirm("You have not entered a personal message!!\nAre you sure you wish to continue?");
    if (agree) return true;
    else return false;
    }
    else return true;
    }
    ===============

    Any JavaScript Gurus offering help?

    Thanks

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Mandatory Text Attribute

    Did you try to just click on the setting for:
    Attribute Required
    for Text:
    No Yes
    This is able to be set on a Per Product Per Attribute basis ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jul 2005
    Location
    UK and Ireland
    Posts
    258
    Plugin Contributions
    1

    Default Re: Mandatory Text Attribute

    Thanks Linda,

    Missed that in Attributes... Attributes Controller > Product > Required = ON

 

 

Similar Threads

  1. v154 File Attribute Mandatory
    By jskandhari in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 3 Feb 2015, 10:06 PM
  2. Mandatory File Attribute?
    By JB2011 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 9 Dec 2011, 06:29 PM
  3. [Done v1.5] Mandatory text attribute -problem
    By tsrplatelayer in forum Bug Reports
    Replies: 7
    Last Post: 16 Aug 2011, 02:50 AM
  4. TEXT attribute is no longer Mandatory
    By slavka001 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 24 Aug 2007, 05:03 PM
  5. Mandatory CheckBox attribute
    By TomCZ in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 17 Feb 2007, 06:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR