Can be change the width of columns in the section without using Custom Component

Certified Lead Developer
Can be change the width of columns in the section without using Custom Components.

Can we achive this using CSS.
...

OriginalPostID-61664

OriginalPostID-61664

  Discussion posts and replies are publicly visible

  • Put the below code on Load of ur form

    function setColumnWidths(sectionId,sectionWidths)
    {
              try{
                        sectionWidths=sectionWidths.split(";");
                        var sectionBody = $("#fd_component_"+window.FormDesigner.runtimeNamespace+sectionId).find(".formSectionBody")[0];
                        if (sectionBody)
                        {
              for(var currentColumn=0 ; (currentColumn<sectionWidths.length)&&(currentColumn<sectionBody.children.length) ;currentColumn++)
              {
                                   sectionBody.children[currentColumn].style.width=(sectionWidths[currentColumn])-2+"%";
                         /* -1% for column margin*/
              }
                        }
              }                    
              catch(err)
    {/*Do nothing if error occurs*/}
    }

    setTimeout(function(){setColumnWidths("sectionID","80;20");},20);