Page 1 of 1

Problem with fd.field('Lookup').control('getSelectedText') in Edit-Form

Posted: 06 Dec 2018
by Mapleleaf
Hi,
I use this Lookup-Funktion in a Form to get the shown text of a lookup-field:

fd.field('Lookup').control('getSelectedText');

This works fine in the display-form. In the Edit Form it only shows the ID of the lookup.

I tried fd.field('Lookup').value(); as well. But this shows the ID in every form.

Is there an other possibility for Edit-Form?

Re: Problem with fd.field('Lookup').control('getSelectedText') in Edit-Form

Posted: 06 Dec 2018
by AlexZver
Hi!

What version of Sharepoint and Forms Designer do you have?

It's very strange indeed, I can't reproduce your issue on the ordinary Lookup field.

Do you use an ordinary Lookup field or a Cross-Site Lookup field?

Re: Problem with fd.field('Lookup').control('getSelectedText') in Edit-Form

Posted: 10 Dec 2018
by Mapleleaf
SP 2013, FD 3.1.2

Ordinary lookup-field

Re: Problem with fd.field('Lookup').control('getSelectedText') in Edit-Form

Posted: 12 Dec 2018
by AlexZver
Hi!

It's quite strange indeed, I can't reproduce your issue.

Please try to create another Lookup on another form and get the shown text from it. Does it work or not? We should locate a problem.