[2.0-Scala] Checkbox helper shows "format.boolean"

1,493 views
Skip to first unread message

Nadav Samet

unread,
Jul 27, 2012, 12:10:14 AM7/27/12
to play-fr...@googlegroups.com
I am trying to create a simple form with a checkbox like in http://www.playframework.org/documentation/2.0/ScalaForms.

I use an helper to render this element:

    @helper.checkbox(form("subscribe"), '_label -> "Confirm:", '_text -> "Some text")

The checkbox shows up, but right next to it "format.boolean" is displayed. It looks like it is coming from @elements.infos. How do I customize it/get rid of it?

Thanks,

Nadav

Kevin Bosman

unread,
Jul 27, 2012, 3:16:08 AM7/27/12
to play-fr...@googlegroups.com
> The checkbox shows up, but right next to it "format.boolean" is displayed. It looks like it is coming from @elements.infos. How do I customize it/get rid of it?

Add a format.boolean value to your conf/messages file
eg. to get rid of it, simply add the following line:
format.boolean=

Guillaume Bort

unread,
Jul 27, 2012, 1:42:48 PM7/27/12
to play-fr...@googlegroups.com
Yes, or you can specify help inline, like:

@helper.checkbox(form("subscribe"), '_label -> "Confirm:", '_text ->
"Some text", '_help -> "Something")
> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>



--
Guillaume Bort, http://guillaume.bort.fr

Nadav Samet

unread,
Jul 28, 2012, 7:53:30 PM7/28/12
to play-fr...@googlegroups.com
Thanks, I ended up customized the string with '_help.

On Friday, July 27, 2012 10:42:48 AM UTC-7, Guillaume Bort wrote:
Yes, or you can specify help inline, like:

@helper.checkbox(form("subscribe"), '_label -> "Confirm:", '_text ->
"Some text", '_help -> "Something")

On Fri, Jul 27, 2012 at 12:16 AM, Kevin Bosman <ke...@gosh.co.za> wrote:
>> The checkbox shows up, but right next to it "format.boolean" is displayed. It looks like it is coming from @elements.infos. How do I customize it/get rid of it?
>
> Add a format.boolean value to your conf/messages file
> eg. to get rid of it, simply add the following line:
> format.boolean=
>
> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-framework@googlegroups.com.
> To unsubscribe from this group, send email to play-framework+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages