<div dir="ltr">Thanks Howard! That solves my problem.<div><br></div><div>Ram.<br><br><div class="gmail_quote">On Sun, Mar 25, 2012 at 8:06 PM, Howard B. Golden <span dir="ltr">&lt;<a href="mailto:howard_b_golden@yahoo.com">howard_b_golden@yahoo.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div><span>Ram,</span></div><div><br>

<span></span></div><div><span>From the mechanize FAQ:</span></div><div><br><span></span></div><div>How do I change <code>INPUT TYPE=HIDDEN</code> field values (for example, to emulate the effect of JavaScript code)?
</div><div>As with any control, set the control’s <code>readonly</code> attribute false.</div>

<pre>form.find_control(<span>&quot;foo&quot;</span>).readonly = <span>False</span> <span># allow changing .value of control foo</span><br>form.set_all_readonly(<span>False</span>) <span># allow changing the .value of all controls<br>

</span><br>HTH,<br><br>Howard<br></pre><div><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px">  <div style="font-family:times new roman,new york,times,serif;font-size:12pt">

 <div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div class="im"> <div dir="ltr"> <font face="Arial"> <hr size="1">  <b><span style="font-weight:bold">From:</span></b> Ram Rachum &lt;<a href="mailto:ram@rachum.com" target="_blank">ram@rachum.com</a>&gt;<br>

 <b><span style="font-weight:bold">To:</span></b> <a href="mailto:twill@lists.idyll.org" target="_blank">twill@lists.idyll.org</a> <br> <b><span style="font-weight:bold">Sent:</span></b> Sunday, March 25, <a href="tel:2012" value="+9722012" target="_blank">2012</a> 10:43 AM<br>

 <b><span style="font-weight:bold">Subject:</span></b> [twill] Why are hidden fields read-only?<br> </font> </div> <br>
</div><div><div class="h5"><div><div dir="ltr"><div>Hello,</div><div><br></div><div>I&#39;m using Twill and I tried to fill in a form which has a hidden field.</div><div><br></div><div>Twill doesn&#39;t let me fill in the hidden field, saying it&#39;s read-only:</div>



<div><br></div><div>    AttributeError: control &#39;user&#39; is readonly</div><div><br></div><div>Why is this? What&#39;s the problem with writing to a hidden field?</div><div><br></div><div><br></div><div>Thanks for your help,</div>



<div>Ram Rachum.</div></div>
</div><br></div></div><div class="im">_______________________________________________<br>twill mailing list<br><a href="mailto:twill@lists.idyll.org" target="_blank">twill@lists.idyll.org</a><br><a href="http://lists.idyll.org/listinfo/twill" target="_blank">http://lists.idyll.org/listinfo/twill</a><br>

<br><br> </div></div> </div> </blockquote></div>   </div></div></blockquote></div><br></div></div>