Carlo,
That is really an excellent (and important!) hint about EmbeddedHTML[ ]. Thank you for that. I'll put it to use right away so that my code becomes compliant with the expected upcoming updates that you mentioned.
I hope you could give a hint or solution on two other items that I have struggled with and that still stump me:
For the following function, how can I stylize InputField[ ], e.g., to change the field color to yellow?
inputField[deployVariable : _String, label : _String | _Style,
initialInput : _String | _Missing,
interpreter : _ : Restricted["Real", {0, Infinity}]] :=
deployVariable ->
<|
"Label" -> label,
(* 3. How to adjust the size of an input field [
I picked up this hint on the forums] *)
"Control" -> Function[InputField[##, FieldSize -> inputFieldSize]],
"Input" -> initialInput,
"Interpreter" -> interpreter (* declared default if omitted:
Restricted["Real",{0,Infinity}] *)
|>
1a. I tested the normal options listed in Options[InputField], such as Rule[Background,Yellow], but these options do not appear to work (i.e., the color is still white) after CloudDeploy[]. In fact, of all the Options[InputField], the only option tested by me that appears to work is FieldSize.
1b. Related to this question, an actual call to the foregoing function returns something like the following on the Wolfram Cloud (i.e., via view source):
<input type="text" value="293.15" size="25" class="form-control" name="temperature" id="id_temperature" data-field-name="Real" data-field-type="Structured" data-field-verbose="real number"/>
Question - How can I pass through some styling in the Wolfram framework of the options and their specifications so that I would get a return like the following in the produced HTML on the cloud. That is, how can I pass through verbatim ' style="background-color: yellow;" ' to get included within <input>?
<input type="text" style="background-color: yellow;" value="293.15" size="25" class="form-control" name="temperature" id="id_temperature" data-field-name="Real" data-field-type="Structured" data-field-verbose="real number"/>
.2. More generally, how can I associate my own CSS style sheet with the return from FormFunction[ ] ?
Thank you! I am looking forward to your hints and solutions!
Scot