INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: How to use new edit type "Check"  (Read 1263 times)

ssands

  • Galactic Citizen
  • ****
  • Posts: 457
How to use new edit type "Check"
« on: October 22, 2014, 01:10:13 am »

So, I am excited about the new edit type "Check", but I don't know how to use it.

What data type should be used with "Check"
What acceptable values?

My experience with check boxes are boolean and one would use an IsChecked() type function.

Help appreciated.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42053
  • Shoes gone again!
Re: How to use new edit type "Check"
« Reply #1 on: October 22, 2014, 08:40:31 am »

The check edit sets the value to 0 or 1.  I think the regular date type (string) should be fine.
Logged
Matt Ashland, JRiver Media Center

ssands

  • Galactic Citizen
  • ****
  • Posts: 457
Re: How to use new edit type "Check"
« Reply #2 on: October 22, 2014, 11:32:04 am »

The check edit sets the value to 0 or 1.  I think the regular date type (string) should be fine.
Thanks, I'll play with that tonight!
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42053
  • Shoes gone again!
Re: How to use new edit type "Check"
« Reply #3 on: October 22, 2014, 11:44:54 am »

Just a note that it also works fine with the data type set to Integer.
Logged
Matt Ashland, JRiver Media Center

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8973
Re: How to use new edit type "Check"
« Reply #4 on: October 22, 2014, 12:07:07 pm »

Quote
"What acceptable values?"
I don't have time to test right now, but I was surprised to find the "Acceptable Values" field remained editable upon choosing the 'check' type, and wondered what might happen if I put "one;two" in there...

While comparing, I see that the default "Rating" field has acceptable values of 1;2;3;4;5 but if we set a user field to edit type 'five stars', acceptable values again remains editable.

I think in these cases, best practice is to leave acceptable values empty.

The check edit sets the value to 0 or 1.  I think the regular date type (string) should be fine.
Thanks, I'll play with that tonight!
In the current build (20.0.27), you won't be able to change this in the tag window. A fix is on its way though.

-marko

Pages: [1]   Go Up