in html , i created 2 record-forms . for two diff custom objects. but how to assign a single button for both. I try to use button outside record form it doesnt work. so i have to use two button for each record-form. So can we assign a single button to create records for respective object??
One user cannot be assigned two page layouts. I think ideally it should consider the page layout assigned to the logged in user because the UI API works in user context.
Hi,
How to create two record forms for two different custom objects on the same page?
Not sure if I understood the question correctly Kumari, but you can just have two forms displayed - one below the other in html
@@sfdcstop How can I get in touch with you?
You can join our telegram group: t.me/sfdcstopdiscuss
in html , i created 2 record-forms . for two diff custom objects. but how to assign a single button for both. I try to use button outside record form it doesnt work. so i have to use two button for each record-form. So can we assign a single button to create records for respective object??
Hi Amit, at the moment I think you need to get a reference of both the form buttons and click them using js in order to submit the form.
if i use full layout and login user has assigned to two pagelayouts then how it will work
One user cannot be assigned two page layouts. I think ideally it should consider the page layout assigned to the logged in user because the UI API works in user context.