Menu

#115 Change 2 - LabeledEdit Component - Remember Previous Submitt

open
nobody
Component (61)
5
2008-01-16
2008-01-16
No

Good day
=00-=0=-=0-

I have found that if you add a value (type) text in the LabeledEdit at run time and submit the form, that if the form is re-created it does DISPLAY the value BUT if you press re-submit again without any changes , then the component actually has no value behind it and it clears and a blank is send to the server page to process (Basically the value server side is then blank on the second submit).

I change the code as follows to fix this.

//====================================

Class : CustomTextField

Line : 2352 : Source : comctrls.inc.php

echo "</script><input type=\"hidden\" id=\"$this->Name"."_value\" name=\"$this->Name"."_value\" value=\"\" /><script type=\"text/javascript\">\n";

Changed to

echo "</script><input type=\"hidden\" id=\"$this->Name"."_value\" name=\"$this->Name"."_value\" value=\"$this->Text\" /><script type=\"text/javascript\">\n";

//====================================

Hope it helps someone

Have a good day

Johannes

Discussion


Log in to post a comment.

MongoDB Logo MongoDB