• Uves
  • NEWBIE
  • 20 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 2
    Replies
I am trying to use JQuery to extract value I have entered into my InputTextArea. I have tried few JQuery quotes and I always get the same error "undefined"

VisualForce Code
<div id="email" class="ff-form">
            <div class="ff-formtitle">Email</div>
            <div>
                <apex:pageBlock mode="view" id="pb">
                    <apex:pageBlockSection columns="1" id="pbs">
                        <apex:pageblocksectionitem >
                            <apex:outputLabel value="Email Body : " for="ebody"/>
                            <apex:inputTextarea id="eBody" value="{!emailbody}" rows="9" cols="50"  richText="true"/>
                        </apex:pageblocksectionitem>
                    </apex:pageBlockSection> 
                </apex:pageBlock>
            </div>
        </div>

JQuery Code
 
console.log(jQuery('input[id$="subject"]').val());
		console.log(jQuery('input[id$="eBody"]').val());
		console.log(jQuery('input[id$="eBody"]').html());
		console.log(jQuery('input[id$="eBody"]').text());
		console.log(jQuery('inputtextarea[name="eBody"]').val());
		console.log(jQuery('inputtextarea[name="eBody"]').html());
		console.log(jQuery('inputtextarea[name="eBody"]').text());
		console.log(jQuery('textarea[name="eBody"]').val());
		console.log(jQuery('textarea[name="eBody"]').html());
		console.log(jQuery('textarea[name="eBody"]').text());

I have tried all the above JQuery Syntax but unfortunatly it doesn't return the value I enter into my inputTextArea.
Any help would be appertiated. 
Thanks
 
  • March 15, 2016
  • Like
  • 0
I have created a table using HTML. The table consists of a header and then many rows called Family. Each Family row can have many rows representing individual member of the family (see code below).

    <table width ="100%" class="gridtable">
         <tr>
             <th>Family Name</th>
             <th>Address</th>
             <th>Age Total</th>
        </tr>
         <apex:repeat value="{!Families}" var="Families">
              <apex:repeat value="{!Families}" var="Family">
                  <tr>
                    <td>{!Family.familyName__c}</td>
                    <td>{!Family.address__c</td>
                    <td>
                        <div id="{!Family.id}">
                              <apex:outputText id="RollUp" value="{0,number,#,###,###,###,###,##0.00}">
                                    <apex:param value="{!Family.AgeTotal}"/>
                              </apex:outputText>
                         </div>
                   </td>
               </tr>
                   <apex:repeat value="{!Family.member}" var="line">
                        <td>{!line.firstName__c}</td>
                        <td>{!line.gender__c}</td>
                        <td>
                            <apex:inputField value="{!line.Age}" onchange="rollupSummary('{!Family.id }');">> </apex:inputField>

My question, is it possible use jquery to update Family.AgeTotal field? Below is the JQuery I have started working on but I kind of got stuck? Any chance for any guidance?


    function rollupSummary(familyId)
    {
         //$j('#'+familyId)
         //$j('#'+'001b000000OQirKAAT').children('span').text('xxx');
         var v = $j('#'+familyId).children('span').val();
         var c = $j('#child'+familyId).children('span').val();
         $j('#'+familyId).children('span').text(v)
     }

    Typical Table:
User-added image

So if I change input value for Smith Family, only the total age for Smith should be updated.

Thanks in advance!
  • February 22, 2014
  • Like
  • 0

Hi,

 

Am trying to upload this package and I am getting the following error. Looks like something changed in summer 13. I get an error with the following three formula.

 

1.

If (
AND (
ISPICKVAL(Status__c, 'Yes'),
ISPICKVAL(LineType__c,'Free'),
TODAY() > ( Account__r.temp_c + Date__c ),
TODAY() <= Account__r.temp__c + Date__c )
)
,
Value__c
,
0
)

 

2.

Money__r.DueDate__c (Date field)

 

3.

Money__r.Status__c (Picklist)

 

The error i am getting for all three is:

 

Field ************* is inaccessible. Please review all fields referenced by the formula. Context: common.formula.EntityFormulaContext

 

Thanks

Uves

  • July 03, 2013
  • Like
  • 0

Hi,

 

I wanted to know if i could create hyperlink to a particular record by just having id as information. 

For example, if i did a SOQL query for ids of all accounts:

 

List<id> accids = [SELECT id FROM Accounts];

 

for (id accid :accids)

{

    for each id i need to create a hyperlink and store it as a string. 

    then display it on VF page

}

 

The issue that not all orgs has the same starting URL?

Any suggestion?

 

Thanks

 

 

  • April 18, 2013
  • Like
  • 0
I have created a table using HTML. The table consists of a header and then many rows called Family. Each Family row can have many rows representing individual member of the family (see code below).

    <table width ="100%" class="gridtable">
         <tr>
             <th>Family Name</th>
             <th>Address</th>
             <th>Age Total</th>
        </tr>
         <apex:repeat value="{!Families}" var="Families">
              <apex:repeat value="{!Families}" var="Family">
                  <tr>
                    <td>{!Family.familyName__c}</td>
                    <td>{!Family.address__c</td>
                    <td>
                        <div id="{!Family.id}">
                              <apex:outputText id="RollUp" value="{0,number,#,###,###,###,###,##0.00}">
                                    <apex:param value="{!Family.AgeTotal}"/>
                              </apex:outputText>
                         </div>
                   </td>
               </tr>
                   <apex:repeat value="{!Family.member}" var="line">
                        <td>{!line.firstName__c}</td>
                        <td>{!line.gender__c}</td>
                        <td>
                            <apex:inputField value="{!line.Age}" onchange="rollupSummary('{!Family.id }');">> </apex:inputField>

My question, is it possible use jquery to update Family.AgeTotal field? Below is the JQuery I have started working on but I kind of got stuck? Any chance for any guidance?


    function rollupSummary(familyId)
    {
         //$j('#'+familyId)
         //$j('#'+'001b000000OQirKAAT').children('span').text('xxx');
         var v = $j('#'+familyId).children('span').val();
         var c = $j('#child'+familyId).children('span').val();
         $j('#'+familyId).children('span').text(v)
     }

    Typical Table:
User-added image

So if I change input value for Smith Family, only the total age for Smith should be updated.

Thanks in advance!
  • February 22, 2014
  • Like
  • 0

Hi,

 

I wanted to know if i could create hyperlink to a particular record by just having id as information. 

For example, if i did a SOQL query for ids of all accounts:

 

List<id> accids = [SELECT id FROM Accounts];

 

for (id accid :accids)

{

    for each id i need to create a hyperlink and store it as a string. 

    then display it on VF page

}

 

The issue that not all orgs has the same starting URL?

Any suggestion?

 

Thanks

 

 

  • April 18, 2013
  • Like
  • 0