Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2019-06-12 12:15 PM
Hi,
I am trying to fetch the value of a field in the custom object. But I did not get any value using the below codes.
1. document.getElementById('master_DefaultContent_rts_ts2023_s1273_f20054c').innerHTML;
2. document.getElementById('master_DefaultContent_rts_ts2023_s1273_f20054c').value;
3. document.getElementById('master_DefaultContent_rts_ts2023_s1273_f20054c').innerText;
4. document.getElementById('master_DefaultContent_rts_ts2023_s1273_f20054c').conentText;
Thanks, Jagan
2019-06-12 01:09 PM
2019-06-12 12:28 PM
1. What exactly field type you are trying to get and in what mode: View/Edit?
2. You can try something like this in Edit mode by supplying your FieldID:
$CM.getFieldValue(fieldId);
2019-06-12 12:37 PM
I am trying in both the Edit and View modes. I am trying to get the tracking id.
The provided one is throwing null value
2019-06-12 12:46 PM
If you need in both View/Edit modes, you have to use plain JQuery.
2019-06-12 01:00 PM
Actually I am trying to parse the tracking ID into a link which changes in each record.
2019-06-12 01:09 PM
Okay, use:
a = getRecordId();
2019-06-12 01:18 PM
Perfect. It works.
Thanks a ton IIya Khen!
Regards, Jagan
2019-06-12 01:21 PM
Anytime