title: Access values of fields using form controls in javascript?
body: <p>I have a form with some text fields(mostly date fields) disabled for a particular user,but has got some value in it.I am not sure whether it is a read-only field.
  anyway the thing is I want to access the disabled field value to perform some other operation using javascript</p>
  
  <p>Here's the stringified value of the control </p>
  
  <pre><code>{"idbase":"row-4-cell-3","lock":{"vary":0,"fixLock":1,"hidden":"","epmSourced":1},"desc":"Plan_date_ac","name":"date-4-3","lockValue":null,"type":"AC"},
  </code></pre>
  
  <p>I tried using:</p>
  
  <pre><code> form[var.control).value
  </code></pre>
  
  <p>and:</p>
  
  <pre><code> document.getElementById(controls[var].idbase).innerHTML
  </code></pre>
  
  <p>neither works for me, it keeps throwing 'undefined'.</p>
  
  <p>Note: only javascript, no jquery please!</p>
  
  <p><a href="https://i.stack.imgur.com/mPPoh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mPPoh.png" alt="tried my best"></a></p>