• nhan
  • NEWBIE
  • 25 Points
  • Member since 2007

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hi, Im new to salesforce and i'm trying to add a new field on my web-to-lead form, i have an existing one that was created by the previous developer, i have this code below... and im trying to add the id that would represent the fields that was created...

<select name="00N30000000mgnL2" size="1"  id="00N30000000mgnL2" title="Bandwidth Commitment">

most of the forms have unique id like "00N30000000mgnL2" i do not know how to get that unique id for that certain field...
please help... im very new to this, i do apologize... thanks!




  • September 11, 2008
  • Like
  • 0
what does this error means?
 
Fatal error: Class 'QueryResult' not found in....
 
hers my code... thanks!
 
$query = 'Select Id, FirstName from contact';
  $response = $mySforceConnection->query(($query));
  $queryResult = new QueryResult($response);
  foreach ($response->records as $record) {
    $sobject = new SObject($record);
    echo $sobject->fields->ContactId;
    echo "\r\n";
  }
} catch (Exception $e) {
  echo $e->faultstring;
}
  • June 25, 2007
  • Like
  • 0
what does this error means?
 
Fatal error: Class 'QueryResult' not found in....
 
hers my code... thanks!
 
$query = 'Select Id, FirstName from contact';
  $response = $mySforceConnection->query(($query));
  $queryResult = new QueryResult($response);
  foreach ($response->records as $record) {
    $sobject = new SObject($record);
    echo $sobject->fields->ContactId;
    echo "\r\n";
  }
} catch (Exception $e) {
  echo $e->faultstring;
}
  • June 25, 2007
  • Like
  • 0