Weird Radio button issue on Insert/Update form

I recently installed Dreamweaver CS4 and am having a heck of a time with radio buttons on my Dynamic Insert/Update form.
For some reason, when I update a record, the radio button I had previously selected, is NOT checked.  However, the value is in the mySQL db.
I've tried this in several different folders, thinking there was a conflict (css, js or whatever) but have had the same issue every time.  I even updated my DDT includes folder but still no luck.
Has anyone had an issue like this with Dreamweaver CS4 and know how to solve it?
Also, I should probably add the Dreamweaver CS4 has crashed at least 3 times per day since I installed it less then a week ago.  My computer easily meets the required specs (3.39GHz, 2GB RAM, 75GB HardDrive).   Something is obviously wrong.  Whether its my computer or CS4, I'm not sure.
Any help is appreciated!
Thanks!
Peter T

OK, I've figured out what the issue is but not why.
See the code below.  For some reason, where it should be {echo "checked";} its {echo "@@checked@@";}
Anyone else run into this situation?
            <td><div>
              <input <?php if (!(strcmp(KT_escapeAttribute($row_rssample_sam['answer_sam']),"1"))) {echo "@@checked@@";} ?> type="radio" name="answer_sam_<?php echo $cnt1; ?>" id="answer_sam_<?php echo $cnt1; ?>_1" value="1" />
              <label for="answer_sam_<?php echo $cnt1; ?>_1">Yes</label>
            </div>
              <div>
                <input <?php if (!(strcmp(KT_escapeAttribute($row_rssample_sam['answer_sam']),"0"))) {echo "@@checked@@";} ?> type="radio" name="answer_sam_<?php echo $cnt1; ?>" id="answer_sam_<?php echo $cnt1; ?>_2" value="0" />
                <label for="answer_sam_<?php echo $cnt1; ?>_2">No</label>
              </div>
              <?php echo $tNGs->displayFieldError("sample_sam", "answer_sam", $cnt1); ?></td>

Similar Messages

  • Is it possible to make a fillable form have variable fields - so if you select a radio button it triggers a different form field to be seen depending on which radio button is selected??

    Is it possible to make a fillable form have variable fields - so if you select a radio button it triggers a different form field to be seen depending on which radio button is selected??

    Yes, one needs to use some custom JavaScript code to control the other fields' properties.
    Disabling (graying-out) Form Fields by Thom Parker

  • Dynamic radio button issues.

    Hello;
    I changed around the way I do a contact form from one page loading onto another to just one page. I had my radio buttons working the 2 page way, but now, it throws an error and says that the TYPE is undefined in the form. The type is the name of my group of radio buttons. Here is what I'm doing, can someone help me fix this so a form will remember if it has to be reloaded what radio button you chose?
    My code:
    <cfform action="#cgi.script_name#" method="post">
    <cfif form.type EQ 'male'>
    <input name="type" type="radio" onClick="setVisibility('sub3', 'inline');setVisibility('sub4','none');setVisibility('sub5','none');" value='male' checked="checked"/>
    <cfelse>
    <input name="type" type="radio" onClick="setVisibility('sub3', 'inline');setVisibility('sub4','none');setVisibility('sub5','none');" value='male'/>
    </cfif>
    <cfif form.type EQ 'female'>
    <input type="radio" name="type" value='female' onClick="setVisibility('sub3', 'none');setVisibility('sub4','inline');setVisibility('sub5', 'none');" checked="checked"/>
    <cfelse>
    <input type="radio" name="type" value='female' onClick="setVisibility('sub3', 'none');setVisibility('sub4','inline');setVisibility('sub5', 'none');"/>
    </cfif>
    <cfif form.type EQ 'child'>
    <input type="radio" name="type" value='child' onClick="setVisibility('sub3', 'none');setVisibility('sub4','none');setVisibility('sub5', 'inline');" checked="checked"/>
    <cfelse>
    <input type="radio" name="type" value='child' onClick="setVisibility('sub3', 'none');setVisibility('sub4','none');setVisibility('sub5', 'inline');"/>
    </cfif>
    those are the 3, I need this form to remember your choice, they control parts of the form. The if statement is throwing the error, this is the error:
    Element TYPE is undefined in FORM.
    The error occurred in C:\quoteReq.cfm: line 282
    Called from C:\Websites\187914kg3\quoteReq.cfm: line 276
    Called from C:\Websites\187914kg3\quoteReq.cfm: line 275
    Called from C:\Websites\187914kg3\quoteReq.cfm: line 260
    Called from C:\Websites\187914kg3\quoteReq.cfm: line 1
    280 :                 <span class="contactText">Select the type of project to get a quote.</span><br>
    281 :                 <br>
    282 :                 <input name="type" type="radio" id="type" onClick="setVisibility('sub3', 'inline');setVisibility('sub4','none');setVisibility('sub5','none');" value='male' <cfif form.type EQ 'male'>checked="checked"</cfif>/>
    283 :                 <span class="contactText">Magnets</span>
    284 :                 <input type="radio" name="type" id="type" value='female' onClick="setVisibility('sub3', 'none');setVisibility('sub4','inline');setVisibility('sub5', 'none');" <cfif form.type EQ 'female'>checked="checked"</cfif>/>   
    Can anyone help me fix this please?

    My code for this simple action is looking really nasty at this point. I agree with making this neater, it controls a lot on this page. It's a problem in the java script, let me show you how this is set up:
    if you click on a radio button (step 1 in the form) it changes a spot in the site (div tags) to your selection. I'm stripping this down to just the java right now, then add in logic to it.
    this is my java, but It's not working right now even strait up with no coldfusion involved.
    <script language="JavaScript">
    function setVisibility(id, visibility) {
    document.getElementById(id).style.display = visibility;
    </script>
    <style type="text/css">
    .showHide {
    position: absolute;
    background-color: #f1f1f1;
    width: 300px;
    padding: 1px;
    color: black;
    border: #999999 2px dashed;
    display: none;
    </style>
    <input name="type" type="radio" onClick="setVisibility('sub3', 'inline');setVisibility('sub4','none');setVisibility('sub5','none');" value='male' checked="checked"/><span class="contactText">Magnets</span>
    <input type="radio" name="type" value='female' onClick="setVisibility('sub3', 'none');setVisibility('sub4','inline');setVisibility('sub5', 'none');"/><span class="contactText">Paper Steel</span>
    <input type="radio" name="type" value='child' onClick="setVisibility('sub3', 'none');setVisibility('sub4','none');setVisibility('sub5', 'inline');"/> <span class="contactText">Both</span>
    my div tags
    <div id="sub3" class="showHide" style="display:inline;">div one content here</div>
    <div id="sub4" class="showHide">div 2 content here</div>
    <div id="sub5" class="showHide">div 3 content here</div>
    right now, this isn't functioning as is. I had it working, until I redid my form approach in programming. Now I need to rethink this. What I'm trying to do is this.
    first, get this script working again. then, once it's swaping out div tags, I need it to remember what radio button you clicked so that respective div tag stays open on page reload of any errors from required fields. f I click on a radio button and send the form with now required fields, it brings up the proper div. I also went with the structkeyexists approach and it kind of helped me, but it's making my code really big and messy going this road.
    any ideas on how to approach this problem? starting with this broken script.
    Right now, there is not dynamic interaction, but i

  • Weird selection button issue.

    I just installed the production suite without issue. Everything updated.  On a win 7 i7 system.
    Premiere pro an PS working fine.
    When i go into encore I can't seem to click on a lot of stuff?  Very weird.  Lots of things work fine... but half the time when i go to click a particular menu option or check box nothing happens.
    For example... if i move something from the library into the timeline the box comes up asking about still duration / dont show this again / OK and cancel.  I cant click ANY of these buttons.  When I mouse over them they are highlighted... but no amount of clicks register. I can close the box... but nothing else.
    When this happens (it happens in a lot of menus) I CAN use TAB / arrow keys to get around the buttons and then press ENter to get it to activate.  On some menus i can press some butons but not others.
    What the hell is going on?  The software is crippled for me at the moment.

    Yeah, another part of the puzzle, and one that I have no clue about.
    Also, sorry that I did not get those random thoughts to you earlier, but did not see your OP, and it was not until you bumped it, that I noticed it - not that I would have had any useful ideas earlier on.
    In the case of the Window Blinds issues, Jeff Bellune, one of the MOD's here, was the one who broke that to me. He usually has some very useful ideas on odd behaviors, and I am surprised that he's not dropped by the thread - Holidays?
    One last thought - Adobe has issued updates for some of the programs in the suites. In PrPro, the CS5.0.3 update did fix several issues. Do not know if they have issued one for Encore yet, but you might wish to check. By going into Bridge, and then Help>Update, you should get ALL of the updates available.
    Good luck, and wish that I had more,
    Hunt

  • Help with Radio Buttons & Combo Box for Flash Form that sends email

    I'm having a bit of a hard time with a Flash form that I'm working on.
    I've got the basic text fields working fine, but I'm not sure how to retrieve the values from the Radio Button and Menu List components.
    The PHP script pulls the values from the text fields with:
    $contact_name = $_POST['name'];
    $contact_email = $_POST['email'];
    $contact_subject = $_POST['subject'];
    but using
    $radioGroup = $_POST['radioGroup'];
    doesn't retrieve the selected radio button value.
    The radio buttons have a groupName of "radioGroup". The combo box component doesn't even show up in the HTML version, but does in the .swf.
    Can anyone point me in the correct direction to pull these values from these components and get them passed to the PHP form? The native .FLA and the php file are here for reference:
    http://dl.getdropbox.com/u/21984/flashform.zip
    My solution needs to be ActionScript 2.
    Thanks!

    again, you assign a variable.  the selected radiobutton's data and/or label isn't going to magically be sent to the php file.
    for example, if you have sendLV and receiveLV loadvars instances, you can use:
    sendLV.rbData=yourradiogroup.selection.data;
    sendLV.yourothervariables=yourothervariables;
    sendLV.sendAndLoad("yourphp.php",receiveLV,"POST");

  • Radio Buttons Defaulting to YES when form is saved

    Hello, I'm researching a problem a user has informed me of, and I haven't seen this topic listed anywhere, nor have I been able to figure out why the problem is happening.
    My form has 5 radio button exclusion groups, each with a YES or NO selection.
    When the form is saved with a selection of NO for each group then re-opened, the selected value has changed to YES for all but the first group.
    Anyone have an idea why this is happening?

    Is there any script on the form that could be changing the values after loading?
    As a test, add a button on the form and use this code on the click event:
    xfa.host.exportData();
    When the button is clicked, it will allow the user to choose a filename to save the data into (it will have an XDP extension). Once it is saved change the extension to XML and open it in your browser. Check and see that those button groups are being set. If they are not it could be that they are not bound correctly. Check to see if the Binding is set to none (if so you are excluding these from your data).
    Hope that helps.

  • Reset  Button is Not Working For Radio Buttons In Expand to fit Forms

    Dear All,
    I have a dynamic form in which text fields height is set to expand to fit.The functionality of the reset button is working fine if none of the field expand during filling the form but during filling the form if any fields height expands and then we want to reset the form, all fields are getting refreshed but the radio buttons are not getting refreshed.
    I have also tried by writing script on the click event of the reset button to make the rawvalue of the radio buttons as null.Even though it is not working.
    I am usuing Reader 7.0 to open the form.Is there anything wrong in this reader version or is there any other problem?
    If any body can please help me.
    Thanks a lot in advance
    Regards
    Rakesh

    Check on the Property Palette of the radio_group the Navigation->Keyboard Navigate atribute.It must be Yes.

  • IPhone 5 Power button issues after recent update.

    After this most recent update, my power button is not working as it normally does.  It takes two or three attempts to turn the phone off and more than once to turn it.  Sometimes it turns on and immediately turns off.  This is happening only after this update.

    Yes 7.1.2  I had a 7.1 backup, and no issues with that... but then I did a clean DL of 7.1.2 and once again with NO apps on the iphone power button issues... as mentioned.  So it is not the apps, nor songs, nor anything else...just 7.1.2  I am now running 7.1  no issues.

  • PHP remember Form-button data to insert into form field

    Hi,
    I am creating a book website where people can reserve books (one at a time).
    Basically what I want to do is have a reserve button under each book which contains hidden values (the title and author of the book) and when they click on the button they will be taken to a 'reserve book' page with a form on it where they will have to fill out their details. However I want the book title and author to automatically be entered into the appropriate fields, so to save the users from having to do it themselves.
    I'm sure this is possible with PHP, but not sure how to go about it in the right way.
    I would appreciate any help with this.
    Thanks

    Thanks for that, however I can't seem to get the first part of the code right. I have the following:
    Reserve book button:
                   <form action="reserve.php" method="post">
                        <input type="hidden" name="bookName" id="bookName" value="Eclipse" />
                        <input type="hidden" name="author" id="author" value="Stephenie Meyer" />
                        <input class="button" type="image" value="send" alt="reserve" src="images/reserve.gif" width="81" height="22"/>
                    </form>
    Reserve book form:
       <form action="process-form.php" method="post">
                  <label for="name">Your Full Name:*</label>
                 <input type="text" name="name" id="name" />
                  <label for="telephone">Tel no:*</label>
                  <input type="text" name="telephone" id="telephone"  />
                  <label for="email">Email:*</label>
                  <input type="text" name="email" id="email"/>
                  <label for="Title">Book Title:*</label>
                  <input type="text" name="book_title" size="25" value="<?php echo $bookName ?>" />
                  <label for="Author">Author:*</label>
                  <input type="text" name="author" size="25" value="<?php echo $author ?>" />
                  <input class="button" type="image" value="send" alt="reserve" src="images/reserve.gif" width="81" height="22"/>         
                </form>

  • Help with Radio Buttons in Form

    Hi. I have inherited a website that has a simple form. I have
    been asked to edit the form adding 4 radio buttons to collect the
    consumer's satisfaction with the content of the website. I have
    added the radio buttons using Dreamweaver MX, however, they do not
    work as I expected them to. I was under the impression that radio
    buttons did not allow the user to select more than one option
    because when the user selected a different option, the first option
    was unselected. My form is currently allowing all four options to
    be selected at the same time. The code for the form is below. I
    have changed the @ in the email address of the form to prevent
    possible spam. Any help would be greatly appreciated.

    It looks like you need to change the name= to the same on
    each radio button, if they all have the same name then you can only
    check one. Then click the form in the behaviors panel and be sure
    the radio button name is inserting into the proper db
    column.

  • Radio button getting unchecked when form in query mode

    There are 4 radio buttons on my form.Initially when the form is opened one radio button is checked.But when the form is in query mode that radio button got unchecked.Is there any way that the initial checked radio button remains checked even the form is in query mode ?
    Message was edited by:
    user496853

    Hi,
    Solutions given by Kevin and Zaibiman is not applicable for my form as the radio button will be in data base block only.This is the requirement of the form.
    The other solution given by Zaibiman was to set the radio button item when entered in query mode , i have tried that but that is also not working.
    Pranati,the solution given by you i have also tried that ,but that has not solved the issue,Radio button get unchecked when eneterd in query mode.
    Please elaborate and suggest.
    Thanks,
    Kirti

  • Inserting Radio Button Data

    I am not able to get <cfinsert> to work to insert into a remote DB2 database.  I have been able to get cfquery INSERT's to insert into the DB2 database.  I have not been able to get radio button data to INSERT into this database.
    This is what I have tried:
    surveyForm.cfm:
    <html>
    <head>
    <title>Survey Form</title>
    </head>
    <body>
    <h2>Enter a Survey Form</h2>
    <cfform action="surveyAction.cfm" method="post">
    Branch:
    <cfinput type="text" name="BRANCH" size="4" maxlength="4"><br><br>
    Contact Name:
    <cfinput type="text" name="CONTACT_NAME" size="40" maxlength="40"><br><br>
    Did you get what you needed today? &nbsp
    <cfinput type="radio" name="NEED_FLAG" id="radio" value="Y">Yes
    <cfinput type="radio" name="NEED_FLAG" id="radio" value="N">No
    <cfinput type="radio" name="NEED_FLAG" id="radio" value="X">Did Not Answer<br><br>
    <br><br>
    <input type="Submit" value="Submit"> <input type="Reset"
    value="Clear Form"></td>
    </cfform>
    </body>
    </html>
    surveyAction.cfm:
    <html>
    <head> <title>Insert Survey Form</title> </head>
    <body>
    <!--- This works until I add the radio button to the insert --->
    <!--- Insert the new record --->
    <cfquery datasource="AXMISC_SURVEY">
       INSERT INTO SURVEY.CAF_SURVEY
       (BRANCH, CONTACT_NAME, NEED_FLAG)
       VALUES
       ( <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.BRANCH#">,
      <cfqueryparam cfsqltype="cf_sql_char" value="#form.CONTACT_NAME#">
         <cfqueryparam cfsqltype="cf_sql_char" value="#form.NEED_FLAG#">
    </cfquery>
    </body>
    </html>
    Thanks,
    Jeanne

    zer0Weaver wrote:
    <!--- This works until I add the radio button to the insert --->
    <!--- Insert the new record --->
    <cfquery datasource="AXMISC_SURVEY">
       INSERT INTO SURVEY.CAF_SURVEY
       (BRANCH, CONTACT_NAME, NEED_FLAG)
       VALUES
       ( <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.BRANCH#">,
      <cfqueryparam cfsqltype="cf_sql_char" value="#form.CONTACT_NAME#">
         <cfqueryparam cfsqltype="cf_sql_char" value="#form.NEED_FLAG#">
    </cfquery>
    </body>
    </html>
    Hi Jeanne,
    Thanks for posting the relevant information, but you forgot to mention what _is_ happening  now ;-)  Does an error occur, and if so  what is the error message, etcetera.. ? But my guess would be you are missing a comma in the VALUES (...) clause:
    VALUES
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.BRANCH#">      ,
    <cfqueryparam cfsqltype="cf_sql_char" value="#form.CONTACT_NAME#">   ,  <!--- should be a comma here --->
    <cfqueryparam cfsqltype="cf_sql_char" value="#form.NEED_FLAG#">

  • Enable/disable/defaulting the radio button in tabular Form

    Hi friends,
    I have one radio button column in my tabular form with 3 values for it.
    <li>FC
    <li>BC
    <li>EC
    I need to enable/disable the radio buttons according to the position of the user.
    If the position of the user is CEO means,
    then FC radio button has to be checked defaultly and also for him he needs to have BC and EC radio buttons to be enabled.
    If the position of the user is between(1-4) grades means,
    then FC radio button has to be disabled, but BC radio button has to be checked defaultly and also for him he needs to have EC radio buttons to be enabled.
    If the position of the user is between(4-6) grades means,
    then FC, BC radio button has to be disabled, but EC radio button has to be checked defaultly.
    How i can achieve this radio button enabling/disabling and defaulting it dynamically according to the user.
    Where i need to specify this kind of restriction inorder to work for me in my application.
    Brgds,
    Mini

    Hi Bob,
    thanks for your reply first, and your suggestion too.
    I tried in the below manner on the lov definition of my radio button and it hide/shown according to the user who logs into the application.
    SELECT 'FC' d, 'FC' r FROM DUAL WHERE lower(:APP_USER) = (select lower(user_name) from apps.xxhy_ams_details_v where upper(job_name) = 'CEO')
    UNION ALL
    SELECT 'BC' d, 'BC' r FROM DUAL WHERE lower(:APP_USER) IN (select lower(user_name) from apps.xxhy_ams_details_v where grade_name
    BETWEEN 1 and 4 OR lower(:APP_USER) = (select lower(user_name) from apps.xxhy_ams_details_v where upper(job_name) = 'CEO'))
    UNION ALL
    SELECT 'EC' d, 'EC' r FROM DUALBut how i can check the radio button defaultly according to the user who logs in .
    <li> If the employee with the position CEO logs into the application means, he needs to have FC to be checked defaultly.
    <li> If the employee with the grade between(1-4) logs into the application means, he needs to have BC to be checked defaultly.
    <li> If the employee with the grade between(5-12) logs into the application means, he needs to have EC to be checked defaultly.
    Note:
    Instead of hide/show the radio buttons defaultly whether it is possible to enable/disable the radio button according to the user who logs into the application.
    Brgds,
    Mini...

  • Acrobat 9-forms-Radio buttons print different than check boxes

    I am using Acrobat Pro 9 to create forms.
    I've used both radio buttons and check boxes (that are circles).
    Forms were designed in InDesign with Zapf Dingbats as the open circles to be filled in.
    I used radio buttons when the user had to pick one over the other.
    I used check boxes when there were multiple choices or I wanted the user to be able to uncheck a box. (I used the circle style so they would look like radio buttons).
    The radio buttons are printing differently than the check boxes. It looks almost like there is an overlay on top of the actual open circle created by Zapf Dingbats.
    I checked the "appearance" window and there is no border or fill color on the radio buttons (same for the check boxes).
    Under the <general> tab, <common properties> is visible. I'm assuming it should be in order for the radio button to appear on the form.
    I would appreciate any input as to how to fix this.
    Thansk!
    Maureen

    That's just the way radio buttons are, and one reason I rarely use them in preference to check boxes. If Adobe wanted to, they could allow you to use any appearance you want for both the selected an unselected state of a check box or radio button, but they've actually further restricted your options over the years.

  • Dynamic radio button fields do not display again after form is saved

    Hello,
    I have a group of radio button questions within a dynamic form that display additional questions based on the answer.
    So for the question "Is there a basement?" if the user indicates yes, there is a basement, additional questions are displayed to gather more information about the basement. If the user indicates no, then those questions do not appear.
    Everything works beautifully in the form. However, when the form is saved and then re-opened, the additional questions do not appear in the form. So the structure goes from this:
    To this:
    The users must toggle the radio buttons to make those questions reappear...and when they do reappear, they have maintained whatever answer the user indicated before saving.
    I'm not sure why this is happening...does anyone have any advice?
    Thank you,
    Theresa

    Hi,
    Thanks so much for your response! I am using Designer 8.2.1.
    I just played around with more of my form...this seems to happen whenever I am working with a hidden subform that is displayed when the user clicks a button (or selects the appropriate radio button). I have a couple of other places within my form where this occurs.
    Here is an example of the script on one of those buttons:
    var intNewIndex = form1.construction_type.const_type_repeat.instanceManager.count-1; 
    form1.construction_type.resolveNode("const_type_repeat[" + intNewIndex + "]").percentage.presence="visible";
    const_type_repeat.instanceManager.addInstance(true);
    The script on the radio button is:
    if (basementyes.rawValue == 4){secondwd.sump.presence ="visible"
      secondwd.sumpradio.sumpyes.presence ="visible"
      secondwd.sumpradio.sumpno.presence ="visible"
    else {secondwd.sump.presence = "hidden"
      secondwd.sumpradio.sumpyes.presence = "hidden"
      secondwd.sumpradio.sumpno.presence ="hidden"
    I am pretty new at this so it might be something obvious...thanks again for your help!

Maybe you are looking for

  • F110 REGUH

    Hi friends, We have vendors with alternative payee and the Bank details are configures for alternative payee. Now when we run the payment run on vendors REGUH table doesn't get updated with the Bank details ( of course these are details of alternativ

  • Pass connect parameters via URL

    I have two applications using authentication method in login page. I need submit URL from one application to another and don't show again connect page. I try like this http://localhost:port/pls/apex/f?p=appl_no:page::&SESSION.::::p101_username,p101_p

  • Reset Page Number for each Group

    I am currently creating a RTF template using XMLP 5.0 My demanding boss gets back in town in five days, and he expects this report to be ready for production. :) But I haven't been able to figure out one last spec. The page number needs to be reset f

  • Sad face on my ipod

    it doesnt show up when i connect it to the computer and i dont know whats wrong with it someone please help me i have the 30 gig video

  • NsDS5BeginReplicaRefresh only works from console

    Is there a difference between initializing a consumer from the GUI, and setting nsDS5BeginReplicaRefresh to 'start' from ldapmodify ? I'm running version 5.1 on Solaris 8. If I initialize a new replication configuration from the console, master/slave