I have a CPT called "company" and there is button leading to page with CRED form for creation child CPT with [cred_field field='_wpcf_belongs_company_id'...] Is it possible to have it prefilled based on previous parent CPT page?
thanks for the link. I took a look on it and I decided to make a change and it would be also more user friendly to have the CRED form on parent page. But now the problem is quite similar. How to automatically fill [cred_field field='_wpcf_belongs_company_id'...] with the current company on which page is CRED form displayed.
I tried this code, but it will add the new company with same name, but not select the already existing one: