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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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