Hello everyone, I have two questions and I would appreciate any help. They are related to the new dropdowns in SuiteCRM 8 when creating a one-to-one relationship:
Can I, apart from the default name field from the related module, add another field? For example: code_custom - name.
Is there a way to pass a parameter to the dropdown to filter the data it returns?
I am in the Cases module, which has a relationship with Accounts (this relationship is native). The dropdown for this relationship loads the account names. I created a field in the Accounts module called “code,” and I want the dropdown to display: code_account - name_account
It looks you need to combine two fileds while searching an account to link a case with. I think we can specify only one column to use for the search operation. In your case you can concatenate code with name while saving the account and don’t do anything for the case account name. If you want to search an account using the code your can add a nondb field in vardefs file. For this you can refer the following example where search is using phone office column.
Hi @Harshad
Thank you very much, it worked perfectly. However, in the detail view, it still only displays the account name. I believe this is because it is rendering the component located at:
Thanks for the reply. I think the detail view should show the value of rname column. Are you able to search by account code in edit and it doesn’t show account code but account name on the detail view?