Hi
I am trying to address a minor issue that has been around for a while. I have a form with two fields that uses an immediate browse lookup to fill the first field. The lookup also sets the initial value of the second field. The users may or may not (usually not) be allowed to change the second field value, so the second field is usually hidden.
Since the browse lookup effectively validates the user's choice already, I would like to save the form automatically on return from the lookup in those situations where the second field is hidden.
I thought a simple javascript based on the onClick value of the Save button might work:
onclick="document.AddBookingResource_frm.action='AddBooking'; document.AddBookingResource_frm.target='_self'; dsb(AddBookingResource_frm,save_btn,'save_btn','','');"
and created this script:
<script type="text/javascript">
document.AddBookingResource_frm.action='AddBooking';
document.AddBookingResource_frm.target='_self';
dsb(AddBookingResource_frm,save_btn,'save_btn','','');
</script>
Although the script is being read by the browser nothing appears to happen.
Any help would be greatly appreciated. Thank you
Apologies if this post is essentially the same as one posted yesterday. I can't see that one in the forum and assume it was lost.