
joejac
Posts: 242
|
| Posted: 05/07/2009, 6:57 AM |
|
Hello,
I set via a javascript function the value of a field form that is a listbox in this way according of a condition:
document.myform.fieldx_no.value = valuex; // valuex is a var
But the form do not pass the parameter fieldx_no with the value assigned. How can I do this?, I mean when click the submit button to send the previously set fieldx_no with its corresponding value assigned.
Is like It requires that the user manually select the option, validation fails, is asking for the field value.
Best regards
joejac
|
 |
 |
melvyn
Posts: 333
|
| Posted: 05/07/2009, 8:21 AM |
|
The form isn't taking the value. If the form take the value then it sends the correct.
Try testing with the function and a textfield, so you can see if the value is correct and check if it got sent.
Also you can post the js here.
_________________
Melvyn Perez
Puro Codigo
http://purocodigo.com |
 |
 |
mentecky
Posts: 321
|
| Posted: 05/07/2009, 5:32 PM |
|
document.myform.fieldx_no.InnerHTML
Rick
_________________
http://www.ccselite.com |
 |
 |
joejac
Posts: 242
|
| Posted: 05/08/2009, 5:54 AM |
|
Thanks a lot both, Melvyn and Rick, I appreciate a lot your valuable time to answer.
Correct, I did not realize that I had a disable in my javascript, for this reason this field was not sent. Thanks to CCS glorious TPL variable I was able to write to the HTML the disable only when needed with and if in the BeforeShow event of the page.
Best regards
joejac
|
 |
 |
|

|
|
|
|