URL parameter for custom border color

Hi everyone - me again! I am running a SaaS application where customers can implement a widget on their site. I am using URL parameters already for customization options and would like to give them styling choices this way as well.

Now, I would like to set a URL parameter with the HEX color code (e.g. bordercolor=FF78EF). Has anyone ever done it? When testing with arbitrary text, it doesn’t seem to apply to color (I tried with # and without).

Hi, seems it works on my side with this setup:

Does it work adding border style all solid to the condition?
Is your parameter correctly written in the URL?
What border color do you obtain in your case ?
Any custom CSS that could overwrite it ?

Hey @a.villabruna :wave:

I created an example for you that takes a color from a random color plugin using a url parameter. Check it out:

Editor: testApp42wCleanDB | Bubble Editor
Preview: https://testapp42wcleandb.bubbleapps.io/version-test/url_parameter_for_custom_border_color?debug_mode=true&color=21

Does that help? :blush:

1 Like

Thank you. It just doesn’t seem to work in the preview, but when I tested it on the site, it did.

1 Like

Yeah, it won’t work on the preview with arbitrary text. :blush:

This topic was automatically closed after 70 days. New replies are no longer allowed.