• zekay2000
  • NEWBIE
  • 0 Points
  • Member since 2004

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

Hello,

Salesforce.com custom fields have preassigned field names that start with zeroes "00N000000etc". (Doesn't conform to W3C standards: http://www.w3.org/TR/html401/types.html#type-name)

For some reason, client-side JavaScript raises an error whenever I try to access a custom field. Using eval(  ) doesn't work either. If the first character of the field name starts with a character, it all works fine. Any workarounds?

  // these don't work
 eval("alert(myForm.00N00000006ozIN.value)");
alert(myForm.00N00000006ozIN.value);

  // these work
 eval("alert(myForm.x00N00000006ozIN.value)");
alert(myForm.x00N00000006ozIN.value);

Thanks so much.

-Zach.

Message Edited by zekay2000 on 07-30-2004 04:27 PM

Hello,

Salesforce.com custom fields have preassigned field names that start with zeroes "00N000000etc". (Doesn't conform to W3C standards: http://www.w3.org/TR/html401/types.html#type-name)

For some reason, client-side JavaScript raises an error whenever I try to access a custom field. Using eval(  ) doesn't work either. If the first character of the field name starts with a character, it all works fine. Any workarounds?

  // these don't work
 eval("alert(myForm.00N00000006ozIN.value)");
alert(myForm.00N00000006ozIN.value);

  // these work
 eval("alert(myForm.x00N00000006ozIN.value)");
alert(myForm.x00N00000006ozIN.value);

Thanks so much.

-Zach.

Message Edited by zekay2000 on 07-30-2004 04:27 PM