Announcement

Collapse
No announcement yet.

How can I assign checked to a custom field radio button?

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

    How can I assign checked to a custom field radio button?

    In a group of order custom radio buttons I would like to make one of the buttons checked by default. Can a checked value be defined to one of the buttons when they are created in utilities or how can I use template code to assign a checked status in the merchant confirmation email template?

    Thanks, Larry
    Larry
    Luce Kanun Web Design
    www.facebook.com/wajake41
    www.plus.google.com/116415026668025242914/posts?hl=en



    #2
    You have to do it in template code. All the display of custom fields is handled manually:

    Code:
    <mvt:assign name="customfields" param="Read_Product_Code(l.settings:product:code, 'custom_field_code', g.myCustomField)" />
    
    <mvt:if expr="NOT ISNULL g.myCustomField">
         <input type="radio" name="imgsel" value="&mvte:global:myCustomField" checked="checked" />  
    </mvt:if>
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment

    Working...
    X