J
jsniemi79
Guest
So the onload event isn't recognizing the value and displaying the field correctly? If that is the case, you should try updating the hiding/showing of the field in another function like my example above. Instead of calling type1(); on the onload event of the view page, call the hide/display function and pass in the true/false value based on the add_to_general_ledger field in the onload event. Then update your client side script to have the type1 function call the new display/hide function so the edit page works as expected. I'm guessing it isn't getting into the type1 function inside your onchange event since the value on the view page isn't "changed". Make sense?
Continue reading...
Continue reading...