Public Form Dropdown List Becomes N/A

  • Describe the bug
    I have a public form where I have employee data that will be called. The employee data used are employee ID (NIP) and employee name, and the primary key is the NIP. When the NIP is entered, the employee name will automatically appear. I have set the scope of the employee dropdown list data to be data corresponding to the NIP entered in the NIP column.

However, when the NIP is entered, the data that appears in the dropdown list is N/A. It should be that if nothing is found, no data will appear (null). If there is a matching data, the name should appear automatically. Please help me with the solution.

  • Environment
    NocoBase version: v1.9.25
    Database type and version: Postgres 16
    OS: windows
    Deployment Methods: docker desktop
    Docker image version: latest

  • Expected

Hello, could you please tell me how the default value for the “karyawan” field is configured?

The default value set on the “karyawan” field is directed to the “current form/NIP” field.

Hello, a regular field cannot be assigned the default value of a relational field; an identical relational field object is required. Your setting method is not supported.

Dear @hongboji

I am facing the same problem.

The difference is, that the select field with “ja” is configured in the datasource and the select field with “N/A” is “belongsToMany” field type.
I can use my url param for setting the datascope. Which I do not want. I only want to preselect one or more options from the dropdown.

Can you please assist?

Thanks
Chris

The default values ​​for relational fields do not support the use of URL parameters.