Clarity Service Management

Expand all | Collapse all

sfDropdown and other sf fields

  • 1.  sfDropdown and other sf fields

    Posted 09-14-2018 10:12 AM

    Is it possible to reduce the width of the sf fields on the list_in.htmpl page? This can be done on the detail_in.htmpl page by adjusting the width of say a dropdown. So no matter the width of the values in the dropdown, it will only appear the designated width, and then expand when the dropdown is selected. But the sf fields don't have the same properties as the dtl fields.



  • 2.  Re: sfDropdown and other sf fields

    Posted 09-14-2018 06:01 PM

    D'Arcey, these are all available option for sfDropdown:

    { "Attribute" ,"attr" }
    { "Code Name" ,"codename" }
    { "Column Span" ,"colspan" }
    { "Default" ,"default" }
    { "Factory" ,"factory" }
    { "Caption" ,"hdr" }
    { "Lookup" ,"lookup" }
    { "No Empty" ,"Noempty" }
    { "OP Code" ,"op" }
    { "Window" ,"win" }

    from here you can see that there is parameter for width.



  • 3.  Re: sfDropdown and other sf fields

    Posted 09-17-2018 01:34 PM

    Well on the dtlDropdown properties, there are two available properties that I use to adjust the width of a dropdown field:

    {Size}

    {Width}

    These options help make the form look neater, else dropdowns that include values with large names will default to the width of the dropdown's largest value.

    This is the issue with the lookup pages, because sfDropdown does not include anything to accomplish this. So if there is a value in a dropdown that is 1000 characters long, then the dropdown expands to accommodate that. So I am looking to see if anyone has been able to set the width of a sfDropdown to never expand past a set width.