Page 1 of 1

How can we clear selected item from Cross-Site Lookup

Posted: 07 Nov 2014
by Gökhan Manav
Hi;

How can we clear selected item from cross-site lookup column.

For example : For country column, I selected Turkey and then I want to disselect this column or clear this column.

I though now we can not clear or ı couldn't not find.


Please help me

Re: How can we clear selected item from Cross-Site Lookup

Posted: 10 Nov 2014
by Dmitry Kozlov
Hi,

Please, put Hyperlink or Button control near the lookup field in Forms Designer and assign the following code to its OnClick property:

Code: Select all

fd.field('LookupField').value('');
return false;

Replace 'LookupField' in the code above with the internal name of your field. This control will allow users to clear the lookup field.

Re: How can we clear selected item from Cross-Site Lookup

Posted: 10 Nov 2014
by Gökhan Manav
Ok.Thanks Dmitry;

I will try and write result.

Maybe you can put this attiribute default to Cross-site Lookup.

Re: How can we clear selected item from Cross-Site Lookup

Posted: 10 Nov 2014
by Gökhan Manav
Hi Dmitry;

I have ~40 Lookup column(it can increase around 100 for all lists) and I understood ı have to write code for all of them.

This is very very long way.:(.

What can I do?I can write a code but it must affect all of lookup columns.

Re: How can we clear selected item from Cross-Site Lookup

Posted: 12 Nov 2014
by Dmitry Kozlov
Do you mean that you need a single button that clears all lookups on the form?