1. REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

How to show checkbox field's result next to each other

Discussion in 'Showcase Support' started by Dadparvar, Dec 4, 2015.

Tags:
  1. Dadparvar

    Dadparvar Member AMS Premium CAS Premium RMS Premium SC Premium UBS Premium

    Hi,

    I created a custom field for item and it is using "Check Boxes" as Field Type. (this field let users to choose their time of working during a day)
    (Imagine a user choose this hours: 8, 9, 10, 11, 12, 16, 17, 18, 19)
    Now it shows like this to users:
    Code:
    8
    9
    10
    11
    12
    16
    17
    18
    19
    How can I set it to show like this in item page?:
    Code:
    8, 9, 10, 11, 12, 16, 17, 18, 19
    The same is for work days. (another field)

    Regards
     
  2. Dadparvar

    Dadparvar Member AMS Premium CAS Premium RMS Premium SC Premium UBS Premium

    If it was possible to use "{$values}" in "Value Display HTML", I could reach my goal by adding something like this to that filed:
    Code:
    <span style="display: inline-block !important;">{$values}</span>
    But we can just use "{$value}" (that control just one of the choices's value. Not all of them)

    Any idea?
    Thanks
     
  3. Bob

    Bob Developer Staff Member

    Custom Field output is controlled by the Core XF custom field template and related CSS. If you modify it, it will effect Core XF Custom User Fields, XFRM Resource Fields, XFMG Media Fields and every addon that has Custom Fields.

    IIRC, there is a How-to Resource in the XFRM (at xenforo.com) that explains how to modify this. I want to say that it was released by @Kintaro (or at least he asked how to do it).
     
  4. Bob

    Bob Developer Staff Member

    Showcase has 4 "value" types that can be used. {$value}, {$valueRAW}, {$valueSC} and {$valueURL}. They all do different things (They are Documented here, you just need to SEARCH).
     
    alfa1 and Dadparvar like this.
  5. Dadparvar

    Dadparvar Member AMS Premium CAS Premium RMS Premium SC Premium UBS Premium

    Searched and found.
    I had some other problems that I could solve with "{$valueSC}".
    I'll check rest of them.
    Thanks
     
  6. Bob

    Bob Developer Staff Member

    btw, Custom Review Fields also have those same "value" types for them (just so you know).
     
    Dadparvar likes this.
  7. Dadparvar

    Dadparvar Member AMS Premium CAS Premium RMS Premium SC Premium UBS Premium

    I found a way.
    The result:
    2015-12-05_17-58-53.png
    These are options that user checked (from a custom field of checkbox)
    I just added some CSS in EXTRA.css to change appearance of these two fields.
    So they are all done manually and indirectly.
    So, I just added a suggestion here:
    http://xenaddons.com/threads/option-to-set-css-for-fields.1825/
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.