Page 1 of 1

lookup autofill shows integer instead of data in editing mode

Posted: 2019-12-10 07:56
by G Belgrado
Lookup autofill shows integer instead of data in editing mode.

field 1 lookup dropdown shows data
field 2 lookup autofill shows integer
field 3 lookup autofill shows data
field 4 lookup autofill shows integer

Instead in "new insert" mode, shows the data all.


I do not understand why

Re: lookup autofill shows integer instead of data in editing mode

Posted: 2019-12-10 15:49
by jsetzer
Please check if your fields have been updated correctly in Admin Area, Utilities, Rebuild fields. Otherwise fix all fields.

If problem remains:
Can you please add screenshots of the settings for field1, field2, field3 and field4 and also a screenshot of the output.

Re: lookup autofill shows integer instead of data in editing mode

Posted: 2019-12-10 16:29
by G Belgrado
in rebuild fields I have no errors.
Perhaps the problem is because the fields in the table to which the lookups refer are also their lookups for 2 more tables.

Now I can't put images of the output
because there are real data with names.
Later I try to make a scheme to explain myself better

thank you Jan

Re: lookup autofill shows integer instead of data in editing mode

Posted: 2019-12-10 16:49
by jsetzer
If the autofills themself are pointing to lookups, I do not know any "out-of-the-box" solution.

Re: lookup autofill shows integer instead of data in editing mode

Posted: 2019-12-10 17:11
by G Belgrado
yes, maybe it's better to create 4 more fields in which to insert the values in hooks before_insert and before_update

but between me and javascript there is no real friendship

:mrgreen:

Re: lookup autofill shows integer instead of data in editing mode

Posted: 2019-12-10 19:11
by jsetzer
You don't need Javascript to fill additional fields in before_insert / before_update hook, just plain PHP.