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.

Custom field question

Discussion in 'Showcase Support' started by vitoreis, Nov 10, 2016.

  1. vitoreis

    vitoreis New Member AMS Premium Showcase

    Just to know if this scenario it's possible:

    1) We have a custom field that accept a number (year). Can be a dropdown (begin 1970, ends 2016).

    2) Output will be print according to the year:
    if 1970, output is "70's period"
    if 1979, output is "70's period"
    if 1986, output is "80's period"
    if 2010, output is "10's period"
    .......
    It's possible without custom work?

    Thanks!
     
  2. Bob

    Bob Developer Staff Member

    You could use the Value Display HTML for that field (General Options tab of the field) to get CLOSE to that.

    Selection_420.png

    Code:
    "{$choice}'s period"
    That would (should) produce "1970's period"
     
    vitoreis likes this.
  3. vitoreis

    vitoreis New Member AMS Premium Showcase

    Thanks @Bob but is't the solution I'm trying to find. Works well with 1970, 1980, 1990, 2000 and 2010 but not to all the years between: 1971, 72, 73....
     
  4. Bob

    Bob Developer Staff Member

    Why all those options when setting 1970, 71, 72, 73, 74 etc are all going to display "70's period". Why not just create periods and have them set the period instead of a year. What is the purpose of 1971 of the OUTPUT is going to be "70's period"?
     
  5. vitoreis

    vitoreis New Member AMS Premium Showcase

    Because I like to alias a name to some generations/period: "golden era" insted of 70's perĂ­odo, "neoclassics" insted of 90's period, etc. And them make a filter by that alias name.
     
    Last edited: Nov 11, 2016
  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.