How to display two column of reference field in one field which is available on catalog item form

Adi13
Tera Contributor

Hello,

I have field name 'Student details' on catalog item form and at the backend table called 'Details' which contain fields 'name, code, address .my requirement is on portal side when we click on 'Student details' want to see 'name' and 'code' in that field currently it only show name as i reference this field to table called 'Details'.

3 REPLIES 3

Jaspal Singh
Mega Patron
Mega Patron

Try using below as variable attribute for 'Student details' field.

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=u_field1;u_field2,ref_ac_columns_search=true,ref_ac_order_by=name

Replace field name with your code or other fields you want to display.

Additionally, check out doc link.

Hello Jaspal,

Now I am able to see 'name' and 'code' in that field from portal side but when I select particular record it only show name in that field

Thats because name has been tagged as a display field. Whatever field you want to display after the record is selected, go to the dictionary of the field and check the display as true and remove the display check from the name field

After selection you can only see display field and there can be only 1 display field