gpdeering
Posts: 57
|
| Posted: 12/15/2005, 2:58 PM |
|
I am having a confusing time trying to implement radiobuttons on my "maint" page.
I initially set up a particular field, "RunType", as a textbox. But now I want to control the input to "P" or "T". So, I changed the textbox to a radiobutton, but realized I had to manually add another one. Now my code looks like:
<tr class="Controls">
<th>Run Type </th>
<td>
<!-- BEGIN RadioButton RunType_Production --><input type="radio" value="P" name="{RunType}">Production<!-- END RadioButton RunType_Production -->
<!-- BEGIN RadioButton RunType_Test --><input type="radio" checked value="T" name="{RunType}">Test<!-- END RadioButton RunType_Test --></td>
</tr>
The "Preview" looks and acts as expected, but both radio buttons and their captions have disappeared in the "Live" page.
I'm almost sure it's something simple, but what am I missing?
Thanks,
gpdeering
|
 |
 |
DonB
|
| Posted: 12/15/2005, 6:24 PM |
|
Is the data type set to Integer (the default) rather than Text?
--
DonB
http://www.gotodon.com/ccbth
"gpdeering" <gpdeering@forum.codecharge> wrote in message
news:243a1f52a99777@news.codecharge.com...
> I am having a confusing time trying to implement radiobuttons on my
"maint"
> page.
>
> I initially set up a particular field, "RunType", as a textbox. But now I
want
> to control the input to "P" or "T". So, I changed the textbox to a
radiobutton,
> but realized I had to manually add another one. Now my code looks like:
>
> <tr class="Controls">
> <th>Run Type </th>
>
> <td>
> <!-- BEGIN RadioButton RunType_Production --><input
type="radio"
> value="P" name="{RunType}">Production<!-- END RadioButton
RunType_Production
> -->
> <!-- BEGIN RadioButton RunType_Test --><input type="radio"
> checked value="T" name="{RunType}">Test<!-- END RadioButton RunType_Test
> --></td>
> </tr>
>
> The "Preview" looks and acts as expected, but both radio buttons and their
> captions have disappeared in the "Live" page.
>
> I'm almost sure it's something simple, but what am I missing?
>
>
> Thanks,
>
> gpdeering
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
gpdeering
Posts: 57
|
| Posted: 12/16/2005, 5:47 AM |
|
Never mind. I'm an idiot. Data type was not the issue. My ignorance and stupidity was.
I do not call myself a web developer (just a developer wanna-be).
When I initially saw just one radio button in the design environment, I didn't realize that all I had to do was simply populate the Data List property and CodeCharge Studio would take care of the rest (adding sufficiently more radio buttons at runtime). I thought that I had to manually more radio buttons from the form panel and set them up similar to the first one. Only, the first few times I tried this, I hadn't relied on the the properties panel to setup of the data list. I went straight to the HTML code.
This whole issue was simply a matter of my understanding how CodeCharge Studio works. Just beautiful!
Thanks for your help and for implicitly reminding me of my shortcomings! 
gpdeering
|
 |
 |
|