Discussions

Expand all | Collapse all

class='Vibrant Success' in a different colour to green!

  • 1.  class='Vibrant Success' in a different colour to green!

    Posted 06-02-2016 17:22

    HI,

    I'm using the 'Vibrant Success' button in my text formula fields (as per the Magic Buttons Sample App), and absolutely love them.

    However, I'd really like to use a different colour in some instances for contrast.

    For example, the dark blue with white text 'submit a question' button on this forum would go down a treat!

    Can this be done without resorting to image onload techniques?

    David

    ----

    Example of the kind of formula text field I'm talking about from the 'Magic Buttons' app.

    If([Checkbox] = false,

        "<a class='Vibrant Success' href='" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] & "&apptoken=d9eascudwjxs2sesxkjccwgtq9r&_fid_101=1&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID#]) & "'>4B. Check a checkbox then display record</a>",

        "<a class='Vibrant Success' href='" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] & "&apptoken=d9eascudwjxs2sesxkjccwgtq9r&_fid_101=0&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID#]) & "'>4B. Uncheck a checkbox then display record</a>"

    )


    PS Anyone not sure what I'm talking about here - search in the App Exchange for 'Magic Buttons'



  • 2.  RE: class='Vibrant Success' in a different colour to green!

    Posted 06-02-2016 17:59
    There are 4 colors I know of.

    "Vibrant Success // makes green


    "<a class=\"Vibrant Primary\"a href=" & $URL & ">" & "words go here" & "</a>", // makes blue


    "<a class=\"Vibrant Danger\"a href=" & $URL & ">" & "words go here" & "</a>" // makes red
    "<a class=\"Vibrant Snowy\"a href=" & $URL & ">" & "words go here" & "</a>" // makes while with light blue letters

    I gave this info to Kirk Trachy at EMPOWER and only geeks like us would be so excited about new colors.  Welcome to our geek club.


  • 3.  RE: class='Vibrant Success' in a different colour to green!

    Posted 06-04-2016 09:10
    Fantastic Mark - thanks for the response (and I'm happy to admit I get excited re this too!). Sorry I didn't get chance to say hello at EMPOWER - had hoped to catch up with you to say thanks for all the support you've provided to me over the years - either directly responding to my questions, or indirectly via your responses to other's questions. Your award was 100% deserved! Thanks. David


  • 4.  RE: class='Vibrant Success' in a different colour to green!

    Posted 06-04-2016 11:51
    :)


  • 5.  RE: class='Vibrant Success' in a different colour to green!

    Posted 06-07-2017 15:59
    Update: There is a 5th colour, yellowish.  Try this code as a formula html button.

    List("&nbsp;",
        "<a class='Vibrant'>Vibrant</a>", // regular grey button
        "<a class='Vibrant Alert'>Vibrant Alert</a>", // yellowish
        "<a class='Vibrant Danger'>Vibrant Danger</a>",  // red
        "<a class='Vibrant Primary'>Vibrant Primary</a>", // blue
        "<a class='Vibrant Snowy'>Vibrant Snowy</a>",  // white
        "<a class='Vibrant Success'>Vibrant Success</a>" // green
    )


  • 6.  RE: class='Vibrant Success' in a different colour to green!

    Posted 06-12-2018 21:03
    btw, on the infamous purple rain day when the UI got all purple, for reasons that are difficult to defend, they changed the green button to blue.  So Vibrant Primary and Vibrant Success are now both blue.


  • 7.  RE: class='Vibrant Success' in a different colour to green!

    Posted 12-25-2018 22:09
    Is the a class for green since they changed Vibrant Success to blue?

    Thanks


  • 8.  RE: class='Vibrant Success' in a different colour to green!

    Posted 12-26-2018 14:44
    Not that I�m aware of. This became less important once they gave us the ability to have colored URL formula buttons. I suppose your need is to have colored buttons but also have floating words by formula?


  • 9.  RE: class='Vibrant Success' in a different colour to green!

    Posted 12-26-2018 16:10
    I have a script in a rich text field so I can not use the built in url button option.