6
$\begingroup$

Simple question. How can I change the FormFunction submit button color? It's possible to do that?

I didn't find any way to do that in the documentation.

The close I got was using PageTheme option, but there are just 4 pre-defined options.

enter image description here

$\endgroup$

1 Answer 1

9
$\begingroup$

You can inspect elements of interest and add css with EmbeddedHTML:

CloudDeploy[
  FormFunction[{
      EmbeddedHTML["<style> .btn.btn-primary.form-submit{background: #000080;}</style>"],
      "first" -> "String", 
      "second" -> "Number"
    }, 
    f
  ], 
  Permissions -> "Public"
]

enter image description here

$\endgroup$
1
  • 1
    $\begingroup$ Tks @Kuba! I used "<style> .btn.btn-primary.form-submit{background: #5bb85b;border: #5bb85b}</style>" to changer border too. $\endgroup$
    – Murta
    May 11, 2019 at 21:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.