Message Boards Message Boards

0
|
3366 Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

How to hide the label in FormFunction?

Posted 2 years ago

Is there a possibility to make the grey word "Information" not appear when the form "form" is called by form[]?

Clear[form];
form = FormFunction[
   "Information" ->
    RepeatingElement[
     CompoundElement[
      <|
       {"Property", Style["Property", 16, Black, Bold]} -> 
        "String",
       {"Unit", Style["Unit", 16, Black, Bold]} -> "String"
       |>
      ]
     ],
   AppearanceRules ->
    <|
     "Title" -> " ",
     "Description" -> 
      Column[{Style["Enter your information", Bold, 20, Red]}]
     |>
   ];
form[]

Regards.

Gianni Mocellin

Attachments:
POSTED BY: Gianni Mocellin
3 Replies
Posted 2 years ago

Crossposted here.

POSTED BY: Rohit Namjoshi

Superb, Eric.

Your solution works perfectly.

Many thanks for your attention.

Regards.

Gianni Mocellin

POSTED BY: Gianni Mocellin
Posted 2 years ago

Try

Clear[form];
form = FormFunction[{"Information", "xyz"} -> 
    RepeatingElement[
     CompoundElement[<|{"Property", 
         Style["Property", 16, Black, Bold]} -> 
        "String", {"Unit", Style["Unit", 16, Black, Bold]} -> 
        "String"|>]], 
   AppearanceRules -> <|"Title" -> " ", 
     "Description" -> 
      Column[{Style["Enter your information", Bold, 20, Red]}]|>];
form[]

I used "xyz" so you can see it as a label, but just set it to empty string or None to remove the label altogether.

POSTED BY: Eric Rimbey
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract