๐Ÿ“‹Cards & Custom Fields

Setting up your cards in Trello is a pretty straightfoward process. Your card should have a due date which will be when the session starts. The fields that you put inside the Configuration file should be put in the description, an example is shown below.

Custom Fields

Creating custom fields is easy! Just add a table entry to the Fields table.

Configuration
Fields = {
    {
        Argument = 'Type',

        Image = nil,
        ImageColor = Color3.new(255, 255, 255),
        GetImage = nil,

        Value = 'This is a <b>%s</b> session.',
        GetValue = nil
    }
}

As you can see, this will make Type the argument, so in Trello you would do Type: Training Session, value is what is shown on the board, in this case, it would say: "This is a Training Session.", %s is always the value passed through from Trello.

What if I didn't want it to say "This is a Training Session.", and instead wanted it to say "This is a training session."? You could use the GetValue argument!

GetValue
GetValue = function(Value)
    return "This is a "..string.lower(Value).."."
end

The code shown above returns This is a training session. Your GetValue function should always return a string, you can see some more examples in the host field.

Don't want to set a specified image? You could use the GetImage argument!

GetImage
GetImage = function(Value)
    local Number = tonumber(Value) + 20

    return "rbxassetid://"..Number
end

Value is the value that is passed through on Trello.

Last updated