I have a Visualforce page on the Account Object that is meant to create a new Account record.  Part of my code uses  to create a selection of 3 radio buttons.  When the Visualforce page is saved and an Account record is created, I want the new Account record to be marked as the value of the radio button selected by the user.  I have 3 custom fields on the Account, each corresponds to one of the radio buttons.  Does anyone know how I can either get the value of the radio button to populate one of those 3 custom fields in my VF page, or how I can get the appropriate field populated on the Account based upon the radio button selection.  The code below accomplishes neither:  &lt;apex:page standardController="Account" tabStyle="Account" id="thePage"&gt;  &lt;script&gt;     function TypeSelect(variable)     {         var choice = variable.value;         if(choice == 'Amplify'){ document.getElementById({!$Component.thePage.theForm.checkBox.AmpVal}).checked = 'true';         }         else if(choice == 'Eng'){ document.getElementById({!$Component.thePage.theForm.checkBox.EngVal}).checked = 'true';         }         else{ document.getElementById({!$Component.thePage.theForm.checkBox.AgeVal}).checked = 'true';         }     }    &lt;/script&gt;  &lt;style&gt;     input[type=radio] {margin-left: 100px;}     .radioClass {margin-left: 25%;} &lt;/style&gt;     &lt;apex:form id="theForm"&gt;      &lt;apex:actionRegion &gt;     &lt;Table width="90%" border="0" cellpadding="0" cellspacing="0" columns="5"&gt;         &lt;tr&gt;             &lt;td colspan="5" class="fieldLabel"&gt;                 &lt;apex:selectRadio layout="lineDirection" styleClass="radioClass" onclick="TypeSelect(this);"&gt;                 &lt;apex:selectOption itemLabel="Amp" itemValue="Amp"&gt;&lt;/apex:selectOption&gt;                 &lt;apex:selectOption itemLabel="Eng" itemValue="Eng"&gt;&lt;/apex:selectOption&gt;                 &lt;apex:selectOption itemLabel="Age" itemValue="Age"&gt;&lt;/apex:selectOption&gt;                 &lt;/apex:selectRadio&gt;                 &lt;apex:actionSupport event="onchange" reRender="thePage"/&gt;            &lt;/td&gt;        &lt;/tr&gt;    &lt;/Table&gt;&lt;br/&gt;&lt;br/&gt;     &lt;/div&gt;       &lt;div id="checkBox"&gt;         &lt;apex:inputField styleClass="AmpVal" id="AmpVal" value="{!Account.Amp_Account__c}" /&gt;         &lt;apex:inputField styleClass="EngVal" id="EngVal" value="{!Account.Eng_Account__c}" /&gt;         &lt;apex:inputField styleClass="AgeVal" id="AgeVal" value="{!Account.Age_Account__c}" /&gt;     &lt;/apex:outputPanel&gt;
121012
I have a VF page on the Account.  I have set up 3 radio selections using apex:selectRadio and a Script.  I would now like to populate custom fields on the Account (Field1__c, Field2__c, Field3__c) with the radio selection the user chose. These fields are checkboxes.  Does anyone know how I can do this?  Thanks,  &lt;apex:page standardController="Account" tabStyle="Account"&gt;  &lt;script&gt;      function TypeSelect(variable)     {         var choice = variable.value;         if(choice == 'Amplify'){             document.getElementById('layoutAmp').style.display = 'block';             document.getElementById('layoutEng').style.display = 'none';             document.getElementById('layoutAge').style.display = 'none';             document.getElementById('{!$Component.theForm.AmpVal}').value = 'true';         }         else if(choice == 'Engage'){             document.getElementById('layoutAmp').style.display = 'none';             document.getElementById('layoutEng').style.display = 'block';             document.getElementById('layoutAge').style.display = 'none';             document.getElementById('{!$Component.theForm.EngVal}').value = 'true';         }         else{             document.getElementById('layoutAmp').style.display = 'none';             document.getElementById('layoutEng').style.display = 'none';             document.getElementById('layoutAge').style.display = 'block';             document.getElementById('{!$Component.theForm.geVal}').value = 'true';         }     }    &lt;/script&gt;  &lt;style&gt;     input[type=radio] {margin-left: 100px;}     .radioClass {margin-left: 25%;} &lt;/style&gt;  &lt;apex:form id="theForm"&gt;     &lt;apex:actionRegion &gt;      &lt;Table width="90%" border="0" cellpadding="0" cellspacing="0" columns="5"&gt;         &lt;tr&gt;             &lt;td colspan="5" class="fieldLabel"&gt;                 &lt;apex:selectRadio layout="lineDirection" styleClass="radioClass" onclick="TypeSelect(this);"&gt;                     &lt;apex:selectOption itemLabel="Amp" itemValue="Amp"&gt;&lt;/apex:selectOption&gt;                     &lt;apex:selectOption itemLabel="Eng" itemValue="Eng"&gt;&lt;/apex:selectOption&gt;                     &lt;apex:selectOption itemLabel="Age" itemValue="Age"&gt;&lt;/apex:selectOption&gt;                 &lt;/apex:selectRadio&gt;                     &lt;apex:inputHidden id="AmpVal" value="{!Account.Amp_Account__c}" /&gt;                     &lt;apex:inputHidden id="EngVal" value="{!Account.Eng_Account__c}" /&gt;                     &lt;apex:inputHidden id="AgeVal" value="{!Account.Age_Account__c}" /&gt;                 &lt;apex:actionSupport event="onchange" reRender="Detail"/&gt;             &lt;/td&gt;         &lt;/tr&gt;     &lt;/Table&gt;
49311
I want to refresh the entire service console on clicking of the save button on the visual force page. The button is an inline visual force page. Any ideas?  &lt;apex:includeScript value="/soap/ajax/26.0/connection.js"/&gt; &lt;apex:includeScript value="/support/console/26.0/integration.js"/&gt; &lt;script type="text/javascript"&gt; function focusAndSave() {     document.getElementById('focusMe').click(); }     &lt;/script&gt;     &lt;apex:form &gt;     &lt;apex:pageBlock id="pb"&gt;         &lt;apex:pageMessages id="errMsgsId"&gt;&lt;/apex:pageMessages&gt;         &lt;input type="text" id="focusMe" style="display:none" /&gt;         &lt;apex:pageBlockTable id="table" value="{!candidateMap}" var="c"&gt;             &lt;apex:column value="{!candidateMap[c].Contact__r.Name}"/&gt;             &lt;apex:column value="{!candidateMap[c].Submitted_at__c}"/&gt;             &lt;apex:column value="{!candidateMap[c].Interview_Availability__c}"/&gt;             &lt;apex:column value="{!candidateMap[c].Notice_Available__c}"/&gt;             &lt;apex:column headervalue="Stage"&gt;                 &lt;apex:outputfield value="{!candidateMap[c].Stage__c}"&gt;                     &lt;apex:inlineEditSupport event="ondblclick"/&gt;                 &lt;/apex:outputfield&gt;             &lt;/apex:column&gt;             &lt;apex:column headervalue="Ideally looking for"&gt;                 &lt;apex:outputfield value="{!candidateMap[c].Ideally_looking_for__c}"&gt;                     &lt;apex:inlineEditSupport event="ondblclick"/&gt;                 &lt;/apex:outputfield&gt;             &lt;/apex:column&gt;             &lt;apex:column headervalue="Action"&gt;                 &lt;apex:commandLink value="Save" action="{!saveCandidate}" rerender="errMsgsId,table" onclick="focusAndSave()" oncomplete="testGetFocusedPrimaryTabId()"&gt;                     &lt;apex:param name="candidateId" value="{!candidateMap[c].Id}" assignTo="{!candidateId}"/&gt;                 &lt;/apex:commandLink&gt;             &lt;/apex:column&gt;         &lt;/apex:pageBlockTable&gt;         &lt;apex:panelGrid columns="7" style="margin: 0 auto;"&gt;             &lt;apex:outputLabel value="{!noOfRecords} records found"&gt;&lt;/apex:outputLabel&gt;             &lt;apex:commandButton status="fetchStatus" reRender="pb" value="|&lt;" action="{!first}" disabled="{!!hasPrevious}" title="First Page"/&gt;             &lt;apex:commandButton status="fetchStatus" reRender="pb" value="&lt;" action="{!previous}" disabled="{!!hasPrevious}" title="Previous Page"/&gt;             &lt;apex:commandButton status="fetchStatus" reRender="pb" value="&gt;" action="{!next}" disabled="{!!hasNext}" title="Next Page"/&gt;             &lt;apex:commandButton status="fetchStatus" reRender="pb" value="&gt;|" action="{!last}" disabled="{!!hasNext}" title="Last Page"/&gt;             &lt;apex:outputLabel value="Page {!pageNumber} of {!pagecount}"&gt;&lt;/apex:outputLabel&gt;         &lt;/apex:panelGrid&gt;     &lt;/apex:pageBlock&gt; &lt;/apex:form&gt;
108591
I have a form which allows the user to create extra "rows" using JQuery (using .clone) so that they can decide how many of the same information they need to submit. My issue is that I cannot work out how to access these form items within my controller.  the form that is being submitted may look like this  &lt;input type="text" name="Amount" id="Amount"&gt;    &lt;select name="Item"&gt;        &lt;option value="1"&gt;Item 1"&lt;/option&gt;        &lt;option value="2"&gt;Item 2"&lt;/option&gt;        &lt;option value="3"&gt;Item 3"&lt;/option&gt;    &lt;/select&gt; &lt;input type="text" name="Amount" id="Amount"&gt;    &lt;select name="Item"&gt;        &lt;option value="1"&gt;Item 1"&lt;/option&gt;        &lt;option value="2"&gt;Item 2"&lt;/option&gt;        &lt;option value="3"&gt;Item 3"&lt;/option&gt;    &lt;/select&gt; &lt;input type="text" name="Amount" id="Amount"&gt;    &lt;select name="Item"&gt;        &lt;option value="1"&gt;Item 1"&lt;/option&gt;        &lt;option value="2"&gt;Item 2"&lt;/option&gt;        &lt;option value="3"&gt;Item 3"&lt;/option&gt;    &lt;/select&gt;   Basically, the block between input and the select could be repeated an infinite number of times. When I submit to the controller I am then using FormCollection form to access the form elements. from there I am unsure how I can access the items that have been submitted. I thought of using a for loop and then accessing them via something like form["Amount"][i] but obviously that is not going to work.  Am I going about this the right way and if so, does anyone have any suggestions about how this might work?  Thanks in advance.
34417
I have a requirement where I need to display list of salesforce objects as a picklist when a radio button is clicked.  Being new to LWC development, I could not figure out what is the right approach to do so. I have come across  from Salesforce articles where we can display radio buttons but as per my scenario, i need to display list of all salesforce objects as picklist when a radio button option is selected.  Can anyone please suggest the right approach to do so.
79320
For example, my component has the following section that displays a record form:  &lt;template if:true={showRecordForm}&gt;     &lt;lightning-record-form         object-api-name={sObjectApiName}         onsuccess={handleFormSuccess}         record-type-id={recordTypeId}         layout-type="Full"         columns="2"         oncancel={handleFormCancel}         onload={handleFormLoad}&gt;     &lt;/lightning-record-form&gt; &lt;/template&gt;   It will load the form for the object I specify in sObjectApiName, and with the specified record type as well. The problem is that I want to assign some values to specific fields.  Let us say that it is a Case form, and I want to assign an Account ID to the AccountId field, before the case is submitted to the platform.  I tried to query the lightning-input-fields, but with no success:  const inputFields = this.template.querySelectorAll(     'lightning-input-field' ); if (inputFields) {     inputFields.forEach(field =&gt; {         console.log(field)     }); }   This is a snippet from the .  I'm starting to think that this might not be viable, or too much trouble. Is there a way to do this?
76271
I was looking at some code and in the 'apex:page' tag, an attribute called recordSetVar was mentioned. I'm new to VisualForce so could someone please tell me when and why is it used?
119872
This may be a easy question for some of you, I really hope so.  I'm trying to get an "output Checkbox". I'm building a visualforce page and I need to expose check boxes results on that page.  I tried the "outputField" but it doesn't show the tick box.   &lt;apex:pageBlockSectionItem &gt;     &lt;apex:outputLabel value="Custom Field" for="customField"/&gt;     &lt;apex:outputField id="customField" value="{!Account.customField__c}"/&gt; &lt;/apex:pageBlockSectionItem&gt;   On that code the CustomField__c is a tick box.  So, how can I accomplish this, because there is not an outputCheckBox and the inputCheckBox is not going to work either?
2350
i have this attribute in my component:  &lt;aura:attribute name="currentRecordDuns" type="String" /&gt;    im trying to send it to the apex controller.  this is the javascript controller:  ({ doInit : function(component, event, helper) {         helper.getAccounts(component); },})     this is the helper:  ({ getAccounts: function(component) {             var action = component.get("c.getAccounts");     action.setParams({         "currentDuns": component.get("v.currentRecordDuns"),         "freeTextFilter": component.find("freeTextFilter").get("v.value")                 });     //Set up the callback     var self = this;     action.setCallback(this, function(actionResult) {         component.set("v.Accounts", actionResult.getReturnValue());                 });             $A.enqueueAction(action);                 },})   this is the apex code:  public class AccConListController {     @AuraEnabled     public static List&lt;Account&gt; getAccounts(String currentDuns,String freeTextFilter) {         String q = 'SELECT Id, Name,DunsNumber, (select name, Phone, Email FROM Contacts where Name like \'%' + freeTextFilter +  '%\' or Phone like \'%' + freeTextFilter +  '%\' or Email like  \'%' + freeTextFilter +  '%\') FROM Account  where DunsNumber=:currentDuns';         //q+= ' and Name like \'%' + freeTextFilter +  '%\'';         List&lt;Account&gt; accounts= Database.query(q);         return accounts;     } }   i didnt get the results i wanted, so i looked at the debug log and saw:     12:13:25:003 VARIABLE_ASSIGNMENT [19]|currentDuns|null   i have no idea why, please advise  EDIT: how do i assign a value to the currentRecordDuns: in my component i call:  &lt;aura:handler name="init" value="{!this}" action="{!c.doInit}" /&gt;   this is doInit in the controller:  ({ doInit : function(component, event, helper) {         helper.getDuns(component);     helper.getLeads(component);     helper.getAccounts(component);      component.set("v.showContacts", component.find("checkboxContacts").get("v.value"));     component.set("v.showLeads", component.find("checkboxLeads").get("v.value")); },  })   the function the retrieves the currentRecordDuns:      helper.getDuns(component);   this is the function in the helper:  getDuns:  function(component) {       var action = component.get("c.getDunsByRecordId");     action.setParams({         "currentRecordID": component.get("v.recordId")             });     //Set up the callback     var self = this;     action.setCallback(this, function(actionResult) {         component.set("v.currentRecordDuns", actionResult.getReturnValue());                 });             $A.enqueueAction(action);  },   and this is the function in the apex controller:      @AuraEnabled public static string getDunsByRecordId(id currentRecordID) {      String q = 'SELECT DunsNumber FROM Account  where Id=:currentRecordID limit 1';     List&lt;Account&gt; accounts = Database.query(q);     return (!accounts.isEmpty()) ? accounts[0].DunsNumber : ''; }
34148
I created a landing page which auto-populates first name, last name and the email. Now I need to pass these 3 along with what radio buttons are selected by the user to a data extension other than the sent one.   I guess is something to do with the submit button for the radio buttons form but how? I have to tell somehow which data extension and what fields/values to add but I don't know how.  Is there any easy way to do that?  Thanks, VD
24463
Question: How to pop-up alert to a user when he/she navigate away from page without saving the Records in custom visual force page?  Details:  I have a custom visual force page i.e. "My Members" that have the following code:  &lt;apex:page Controller="MyMember" &gt; &lt;script&gt;  function mytest() {  if (!confirm('Are you sure to naviagte without saving Records?')) {   }  else {return true;} }  window.onbeforeunload = mytest(); &lt;/script&gt; &lt;apex:form id="form"&gt;    &lt;apex:pageblock title="Member List" &gt;  &lt;apex:pageBlocktable value="{!CheckSelectedList}" var="memLst" &gt; &lt;apex:column title="Select" &gt; &lt;apex:inputCheckbox value="{!memLst.checked}" &gt;&lt;/apex:inputcheckbox&gt; &lt;/apex:column&gt; &lt;apex:column headerValue="Name" &gt; &lt;apex:actionRegion &gt; &lt;apex:outputField value="{!memLst.KeepSelected.Name}" &gt; &lt;apex:inlineEditSupport event="ondblClick" showOnEdit="btnSave,btnCancel" hideOnEdit="btnAddSession" /&gt; &lt;/apex:outputField&gt; &lt;/apex:actionRegion&gt; &lt;/apex:column&gt;  &lt;/apex:pageBlocktable&gt;  &lt;apex:pageblockButtons&gt; &lt;apex:commandButton value="Save" action="{!save}" id="btnSave"  style="display:none" /&gt;  &lt;apex:commandButton value="Cancel" action="{!cancel}" id="btnCancel"  style="display:none" reRender="PanelId" /&gt; &lt;/apex:pageblockButtons&gt;   &lt;/apex:pageblock&gt; &lt;/apex:form&gt; &lt;/apex:page&gt;   In my VF Page, I have a in-line edit support enable.  The issue is:  Whenever, I want to alert user when they edit records and navigate without saving the record using JavaScript (Please see above the JavaScript code I was trying). It doesn't seem to be working. Am I missing anything? Is it possible to do this using only JavaScript in Customer Visual Force Page? Need: I want when user edit the Record and leave the page without saving my function will execute and show the pop-up message.   My thoughts:  I was also thinking to execute my JavaScript function by using apex class? Should it be possible? Or any other technique how to invoke popup when the user navigate without saving the Edit records?
105563
&lt;apex:repeat value="{!blocksThatAreComponents}" var="key"&gt;      &lt;div id="{!key}"&gt;                               &lt;apex:dynamicComponent componentValue="{!PageComponentsMap[key]}" /&gt;           &lt;/div&gt; &lt;/apex:repeat&gt;   I am trying to use apex:repeat and display a number of dynamic components. Problem is the key variable in {!PageComponentsMap[key]} evaluates to null for reasons I do not understand. On the div, it evaluates well but not on the dynamic component.  If I change {!PageComponentsMap[key]} to {!PageComponentsMap['somekey']} where (key == 'somekey'), it works.   I found out that due to visualforce page execution order, dynamic components are rendered first before any other thing on the page so by the time they are rendered, key is null. To solve that, I set the invokeAfterAction attribute of dynamic component to true.   &lt;apex:repeat  value="{!pageComponents}" var="pc"&gt;                   &lt;span&gt;{!pc}&lt;/span&gt;         &lt;apex:dynamicComponent invokeAfterAction="true"  componentValue="{!pc}"/&gt;  &lt;/apex:repeat&gt;   That way the other things in the page are rendered before the dynamicComponent. Problem with this is that it uses the last value of pc for all the components which means that it renders the same thing many times  public class getPageContent {             public List&lt;ApexPages.Component&gt; pageComponents { get; set; }         public getPageContent() {                   pageComponents = new List&lt;ApexPages.Component&gt;();         pageComponents.add(new Component.c.GSCMS_ChatterFeed());         pageComponents.add(new Component.c.GSCMS_SVGExample());         pageComponents.add(new Component.c.SampleComponent());                 }          }       How do I make it use the different values of pc that I have  Update to the question :  Though there are distinct values of Page components it renders only the last added component as below.
3180
If I have a custom controller and a custom visualforce page, and I'm passing an ID as a query param, how can I get the associated record for that ID from within the VF page?  public class MyCustomController() {   ... legacy code here }  &lt;apex:page controller="MyCustomController"&gt;   &lt;apex:outputText value="{! SOME VF SYNTAX TO RETRIEVE RECORD GIVEN QUERY PARAM ID}" /&gt; &lt;/apex:page&gt;
52576
My VF tags:  &lt;apex:column &gt;     &lt;apex:facet name="header"&gt;Sales Price&lt;/apex:facet&gt;     &lt;apex:inputText value="{!prod.SalesPrice}"/&gt;     &lt;/apex:column&gt;   Controller code:  public string SalesPrice{get; set;} oli.UnitPrice =decimal.valueOf(pi.SalesPrice);   It works when a user insert 15 and 15.00 but it doesn´t with 15,00(comma).  I m using apex:inputText linked to a controller apex property because apex:inputfield is not allowed.  I´ve tried with apex:input with type=number but it doesn´t look good, (small button to increase/decrease inserted value). Is there another Visualforce tag that i can use with a property? Is the only solution to replace comma with dot in the controller?
89673
I am trying to get  to work within salesforce visualforce pages.  I have a basic vf page from  example, but it does not respopnd, I suspect there may be some "unknown" workaround needed? Does anyone know?  &lt;apex:page standardController="Contact" showHeader="false" sidebar="false" docType="html-5.0"  standardStylesheets="false"&gt;  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"&gt;&lt;/script&gt; &lt;script src="http://twitter.github.io/typeahead.js/releases/latest/typeahead.bundle.js"&gt;&lt;/script&gt;      &lt;div id="the-basics"&gt;   &lt;input class="typeahead" type="text" placeholder="States of USA"/&gt; &lt;/div&gt;  &lt;script&gt;     var substringMatcher = function(strs) {       return function findMatches(q, cb) {         var matches, substrRegex;          // an array that will be populated with substring matches         matches = [];          // regex used to determine if a string contains the substring `q`         substrRegex = new RegExp(q, 'i');          // iterate through the pool of strings and for any string that         // contains the substring `q`, add it to the `matches` array         $.each(strs, function(i, str) {           if (substrRegex.test(str)) {             // the typeahead jQuery plugin expects suggestions to a             // JavaScript object, refer to typeahead docs for more info             matches.push({ value: str });           }         });          cb(matches);       };     };      var states = ['Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California',       'Colorado', 'Connecticut', 'Delaware', 'Florida', 'Georgia', 'Hawaii',       'Idaho', 'Illinois', 'Indiana', 'Iowa', 'Kansas', 'Kentucky', 'Louisiana',       'Maine', 'Maryland', 'Massachusetts', 'Michigan', 'Minnesota',       'Mississippi', 'Missouri', 'Montana', 'Nebraska', 'Nevada', 'New Hampshire',       'New Jersey', 'New Mexico', 'New York', 'North Carolina', 'North Dakota',       'Ohio', 'Oklahoma', 'Oregon', 'Pennsylvania', 'Rhode Island',       'South Carolina', 'South Dakota', 'Tennessee', 'Texas', 'Utah', 'Vermont',       'Virginia', 'Washington', 'West Virginia', 'Wisconsin', 'Wyoming'     ];      $('#the-basics .typeahead').typeahead({       hint: true,       highlight: true,       minLength: 1     },     {       name: 'states',       displayKey: 'value',       source: substringMatcher(states)     }); &lt;/script&gt;
123645
According to the documentation  in order to retrieve a list of picklist values for an object we need to pass in a Record Type Id which can be retrieved using the getObjectInfo method.   The issue is that these are both wire functions and I cannot figure out how to chain these methods.  If I try code like the following:  getObjectInfo({ objectApiName: ACCOUNT_OBJECT })             .then(result =&gt; {                 return getPicklistValues({recordTypeId: result.defaultRecordTypeId, fieldApiName: TYPE_FIELD});             })             .then(result =&gt; {                 this.picklistValues = result.data             })             .catch(error =&gt; {                 this.error = error;             });   I get an error      render threw an error in 'c:getpicklistexample' [Imperative use is not   supported. Use @wire(getObjectInfo).]   If I try something like   @track rtId;      @wire(getObjectInfo, { objectApiName: ACCOUNT_OBJECT })     handleResult({error, data}) {         if(data) {             this.rtId = data.defaultRecordTypeId;         }     }      @wire(getPicklistValues, {recordTypeId: this.rtId,fieldApiName: TYPE_FIELD})     picklistValues;   Then it throws an internal server error. Anybody have an idea as to how I could retrieve the record type Id and then call to get the pick list values like the documentation suggests?  FYI my imports are:  import { LightningElement, wire, track } from 'lwc'; import { getPicklistValues, getObjectInfo } from 'lightning/uiObjectInfoApi'; import TYPE_FIELD from '@salesforce/schema/Account.Type'; import ACCOUNT_OBJECT from '@salesforce/schema/Account';
39132
I created a custom button for custom object to place in the related list. The custom object has two look-ups, one for case and one for account. This button, when clicked, should open in a new window to save a record of the custom object, with the default values for each look-up to populate automatically depending on the record where the button was clicked. It works for every record so far, except one case. It then throws the error: A problem with the Onclick Javascript for this button or link was encountered: Unexpected identifier.  I couldn't find any differences between records where it works and doesn't.  Code:  window.open('a2U/e?CF00N600000037HI4={!Account.Name}&amp;CF00N600000037HI4_lkid={!Account.Id}&amp;retURL=%2F{!Account.Id}&amp;CF00N600000037HI5={!Case.CaseNumber}&amp;CF00N600000037HI5_lkid={!Case.Id}&amp;retURL=%2F{!Case.Id}','','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=yes,location=yes,status=yes');
109837
I am having trouble using apex:selectradio because of 508 compliance issues. The selectradio is creating html table tags with role="presentation" and the tool my client is using treats it as a layout table and not data table and fails to read the labels for the radio button.   The solution I have come up with is to use input type radio and pass the values to to controller, but I cannot fire submitSatisfactionComment method.  Here is my code.  VisualForce Page:  &lt;input type="radio" onclick="satisfactionComment"  name="satisfaction" value="1"&gt; {!$Label.One}         &lt;apex:actionFunction name="satisfactionComment" action="{!ctrl.submitSatisfactionComment}" rerender="myPanel"/&gt;     &lt;/input&gt; &lt;input type="radio" onclick="satisfactionComment"  name="satisfaction" value="2"&gt; {!$Label.Two}         &lt;apex:actionFunction name="satisfactionComment" action="{!ctrl.submitSatisfactionComment}" rerender="myPanel"/&gt;     &lt;/input&gt;   Apex Code:  public PageReference submitSatisfactionComment() {     //do something here with the selected value of the radio button     return null; }