ReadOnly/Disabled no effect on modal dlg lookup

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
sticcino
User
Posts: 1043

ReadOnly/Disabled no effect on modal dlg lookup

Post by sticcino »

Just noticed that if you try to read-only or disable a "use lookup. modal dlg for lookup" field, that it does not disable or make the field readonly.

is this correct ?

Thanks,
Johnny


sangnandar
User
Posts: 980

Post by sangnandar »

Yes it does.


mobhar
User
Posts: 11703

Post by mobhar »

This should help: hkvforums.com/viewtopic.php?f=4&t=41062&p=125096#p125096


sticcino
User
Posts: 1043

Post by sticcino »

hi

thanks for the code. Didn't work as posted as there is no .ewLookupBtn DIV and some of the other tags w=don't exist

so just hid it:

$(document).ready(function() {
$("div#r_Item_QA_Tech").hide(); // hide browse button which has magnifying glass icon
$("#aol_x_Item_QA_Tech").hide(); // hide button to add record on-the-fly
$("div #lu_x_Item_QA_Tech").removeAttr("onclick"); // hide the click ability
});


mobhar
User
Posts: 11703

Post by mobhar »

sticcino wrote:
Didn't work as posted as there is no .ewLookupBtn DIV

It should work properly, as I've already often used that code to disable my Lookup button and to prevent to display the Modal dialog when my end-users clicking on that Lookup section on Add/Edit form.


Post Reply