Page 1 of 1

Cross Side Lookup read-only

Posted: 13 Jul 2015
by Andy Weisse
Hi!

How can I set CrossSide Lookups read-only?

fd.field('name').readonly(true); <- If that doesn't work anymore since the update?

Best regards

Andy

Re: Cross Side Lookup read-only

Posted: 13 Jul 2015
by rostislav
Hello,

It works in the new version the same way it was working before. Are you using the correct internal name? Often these problems arise because of confusion between the title of a field and it's internal name. The internal name is found in the Forms Designer (click on the control -> in the panel on the right hand side under 'Field' you'll see 'InternalName').

Re: Cross Side Lookup read-only

Posted: 13 Jul 2015
by Andy Weisse
Thanks for your answer! I used the internal names. The problem exists in all lookup fields.

All fields are readonly, only these not.

Re: Cross Side Lookup read-only

Posted: 13 Jul 2015
by Andy Weisse
In Firefox it works, but in Explorer not.

Re: Cross Side Lookup read-only

Posted: 14 Jul 2015
by rostislav
What version of Internet Explorer are you using?

Re: Cross Side Lookup read-only

Posted: 14 Jul 2015
by rostislav
Indeed this is a bug of the new version. We'll fix it in the nearest future. For now please use a workaround:

Code: Select all

Plumsail.CSL.jQuery(fd.field("INTERNALNAME").control()._el().find(".plumsail-csl > input")).select2('enable', false);
Replace last false with true if you want to enable the control.

Re: Cross Side Lookup read-only

Posted: 15 Jul 2015
by rostislav
We've fixed the bug, you can download the latest version from the website and get rid of the workaround.