Announcement

Collapse
No announcement yet.

Attribute not selected by default?

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

    Attribute not selected by default?

    Hi Guys.

    http://www.baypressservices.com/acat...-solution.html

    For some reason, on this new page, the first permutation or attribute is not selected by default, and the order process cannot proceed.

    Anybody see what I am doing wrong?

    Thanks
    Dave
    www.baypressservices.com

    #2
    You may want to check the Component under General there is an option for "Is Optional".
    "Opportunities multiply as they are seized." - Sun Tzu

    Comment


      #3
      Your generated HTML looks weird. I see a commented out set of Attributes / Choices that do have the checked attribute on the first radio.

      Then another block of the same Attributes / Choices without the checked attribute on the first radio.

      Some thing's modified your layouts.

      Example of generated code (lines removed for clarity):
      Code:
      <div id="idv_xrite ex old_1_Table">
      CODE COMMENTED OUT
      <!--<table border="0" cellpadding="0" 
      	width="500"
       cellspacing="0">
      <tr><td>
      
      <input type="radio" name="v_xrite ex old_1" value="1" checked="checked" >
         
      	   eXact without Bluetooth
         ($3,995.00)
      </td></tr><tr><td>
      input type="radio" name="v_xrite ex old_1" value="2"  >
      	   eXact with Bluetooth
         ($4,125.00)
      </td></tr><tr><td>
      .
      .
      .
      </td></tr></table>-->
      COMMENTED OUT CODE ENDS
      
      SAME CODE BUT NO checked="checked"
      <table border="0" cellpadding="0" 
      	width="500"
       cellspacing="0">
      <tr><td>
      <input type="radio" name="v_xrite ex old_1" value="1"  >
       	   eXact without Bluetooth
         ($3,995.00)
      </td></tr><tr><td>
      <input type="radio" name="v_xrite ex old_1" value="2"  >
       	   eXact with Bluetooth
          ($4,125.00)
      </td></tr><tr><td>
          .
          .
          .
      </td></tr></table>
      
      </div>
      Probably the code that checks the first radio doesn't run for the second lump because it's already checked said radio (in the commented out bit).
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        No probably. Definitely. Snippet of code from layout Radio Button Permutation Entry:
        Code:
        <actinic:block php="true" >
           echo ($bOptionSelected == false) ? 'checked="checked"' : '';
           $bOptionSelected = true;
        </actinic:block>
        So that line in red will be preventing the radio from being checked when the visible bit of code is generated.

        Solution: Delete instead of commenting out the first block of code.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Thanks
          Resolved
          Dave
          www.baypressservices.com

          Comment

          Working...
          X