Announcement

Collapse
No announcement yet.

How should I read a radio button custom field?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How should I read a radio button custom field?

    Hello forum:
    Need help.
    I am attempting to read an order radio button custom field like this:
    <mvt:item name="customfields" param="Read_Order(l.settings:order:id, 'delivery_date_type',l.settings:deliverydatetype)" />
    I am not getting a value in the delivery_date_type variable.
    How should this be done?
    Thanks, Larry
    Larry
    Luce Kanun Web Design
    www.facebook.com/wajake41
    www.plus.google.com/116415026668025242914/posts?hl=en



    #2
    Re: How should I read a radio button custom field?

    Found my issue.
    Used the custom field debug statement: <mvt:item name="customfields" param="Debug()" /> and it identified that I had misspelled the custom field name.
    That debug thing is a really nice feature BTW. Just discovered it.
    Larry
    Last edited by wajake41; 08-18-15, 10:12 AM.
    Larry
    Luce Kanun Web Design
    www.facebook.com/wajake41
    www.plus.google.com/116415026668025242914/posts?hl=en


    Comment


      #3
      Re: How should I read a radio button custom field?

      For the record, misspellings aside :), Custom Field values from form inputs follow a fairly simple formula:

      The field NAME = the custom field code
      The Field VALUE = the custom field value

      So,

      1 <input type="radio" name="ru_serious" value="yes" />
      2 <input type="radio" name="ru_serious" value="no" />

      custom field code = ru_serious (no hyphens btw)
      custom field value 1 = yes
      custom field value 2 = no
      Bruce Golub
      Phosphor Media - "Your Success is our Business"

      Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
      phosphormedia.com

      Comment

      Working...
      X