Geert van der Ploeg
|
| Posted: 07/25/2002, 2:05 AM |
|
Hi all,
I'm struggling to get a default setting for a checkbox in a record form.
What property should I set to what value, in order to get a checkbox to
adapt "checked" as a default?
I've tried so far:
Checked value: 1
Unchecked value: 0
Default Value: "Checked" (chosen from the list [checked, unchecked])
Checked value: 1
Unchecked value: 0
Default Value: 1
These two don't work out anything.
And checking the checked-checkbox (still following me? ) in the
Format-tab makes the checkbox to be checked always, independant of a value
in the database.
A suggestion, anyone?
Thanks in advance.
--
Geert van der Ploeg
Triple IT
|
|
|
 |
DonB
|
| Posted: 07/25/2002, 4:32 AM |
|
Did you use the checkbox from "Forms" or "HTML" on the Properties page?
I always use the one on "Forms", set checked to -1 and unchecked to -0
(which has always necessary to get the checkbox to appear checked). With
Default Value set to "Checked", it works for me.
I have CCS 1.0.7
"Geert van der Ploeg" <news@geert.triple-it.nl> wrote in message
news:ahof0v$e67$1@news.codecharge.com...
> Hi all,
>
> I'm struggling to get a default setting for a checkbox in a record form.
>
> What property should I set to what value, in order to get a checkbox to
> adapt "checked" as a default?
>
> I've tried so far:
> Checked value: 1
> Unchecked value: 0
> Default Value: "Checked" (chosen from the list [checked, unchecked])
>
> Checked value: 1
> Unchecked value: 0
> Default Value: 1
>
> These two don't work out anything.
>
> And checking the checked-checkbox (still following me? ) in the
> Format-tab makes the checkbox to be checked always, independant of a value
> in the database.
>
>
> A suggestion, anyone?
>
> Thanks in advance.
>
> --
>
> Geert van der Ploeg
> Triple IT
>
>
>
>
|
|
|
 |
Geert van der Ploeg
|
| Posted: 07/25/2002, 5:27 AM |
|
> Did you use the checkbox from "Forms" or "HTML" on the Properties page?
From the 'forms' tab.
>
> I always use the one on "Forms", set checked to -1 and unchecked to -0
> (which has always necessary to get the checkbox to appear checked). With
> Default Value set to "Checked", it works for me.
This doesn't work for me.
>
> I have CCS 1.0.7
I have 1.0.6.
|
|
|
 |
donb
|
| Posted: 07/29/2002, 12:05 PM |
|
Was the example I emailed to you of any help?
"Geert van der Ploeg" <news@geert.triple-it.nl> wrote in message
news:ahoqsd$2fa$1@news.codecharge.com...
> > Did you use the checkbox from "Forms" or "HTML" on the Properties page?
>
> From the 'forms' tab.
>
> >
> > I always use the one on "Forms", set checked to -1 and unchecked to -0
> > (which has always necessary to get the checkbox to appear checked).
With
> > Default Value set to "Checked", it works for me.
>
> This doesn't work for me.
>
> >
> > I have CCS 1.0.7
>
> I have 1.0.6.
>
>
>
|
|
|
 |
Geert van der Ploeg
|
| Posted: 07/29/2002, 11:37 PM |
|
Ehh... well... no, not really (but thanks nonetheless).
I use PHP (and do not have any VB knowledge), so I could not get your
example to work with a database...
I gave up pretty soon (I didn't have much more time) and decided to use
radiobuttons (with caption "Yes" and "No) instead.
I know it's not a very elegant solution but it works...
But thanks for your time...
Maybe in some point in the future, i will investigate what the problem is..
(and then, if it's rocket-science, share it with this NG )
Geert
"donb" <dnb@comcast.net> wrote in message
news:ai43lv$2ec$1@news.codecharge.com...
> Was the example I emailed to you of any help?
>
>
> "Geert van der Ploeg" <news@geert.triple-it.nl> wrote in message
>news:ahoqsd$2fa$1@news.codecharge.com...
> > > Did you use the checkbox from "Forms" or "HTML" on the Properties
page?
> >
> > From the 'forms' tab.
> >
> > >
> > > I always use the one on "Forms", set checked to -1 and unchecked to -0
> > > (which has always necessary to get the checkbox to appear checked).
> With
> > > Default Value set to "Checked", it works for me.
> >
> > This doesn't work for me.
> >
> > >
> > > I have CCS 1.0.7
> >
> > I have 1.0.6.
> >
> >
> >
>
>
|
|
|
 |
|