I think your IF statement should look like this: if (SCR01.getFieldValueWithTransform("TESTFLD", QUOTED_TRANSFORM) == 'Y')
Unconfigured Ad Widget
Collapse
Announcement
Collapse
No announcement yet.
Radio Buttons in JSP
Collapse
X
-
Radio Buttons in JSP
Mark, Thanks for the reply. My statement now looks like this -input type=radio name=radio <% if (SCR01.getFieldValueWithTransform("TESTFLD", QUOTED_TRANSFORM) == 'Y') { %> checked <% } %>
When I save, I get an error that says "JavaCompile: Incompatible operand types String and char." I have tried everything I can think of......any ideas? Thanks, Joe
-
Radio Buttons in JSP
I have a simple webfaced program and want to add radio buttons to enter values for a "Y"/"N" field. When the page runs, the radio buttons are (by default) not checked. Enter is automatically entered once the radio button is checked (which is what I want). However, the radio buttons then revert to their defaul value of not checked. I am thinking that it should be really easy to insert a java IF statement something like this - ......radio name=radio <% if (SCR01.getFieldValueWithTransform("TESTFLD", QUOTED_TRANSFORM) = 'Y' { %> checked <% } %> onclick=TESTFLD.value="Y";validateAndSubmit('Enter')>Yes To retain the last status......the problem is that I am somewhat ignorant when it comes to java and cannot make the ^*^@$#! compile. I am sure that it is something really simple! Any help would be greatly appreciated! Thanks, Joe
Comment
Comment