Adding new record to portal

I have a button on my people form. When it is pressed, I want to create a new record on a portal.

I have tried:

elements.portal_people_have_addresses_mailing_70.newRecord()

which doesn’t seem to do anything, and also

forms.people.controller.newRecord(people_have_addresses_mailing);

which seems to move to a new record on the form and not the portal.

Can you tell me what I am doing wrong???

Thanks!!!

you need to use the relationship data provider under the form node.

ex

orders_to_accounts_byacctid.newRecord()

Hi,

The following should work :

elements.portal_people_have_addresses_mailing_70.newRecord()

It may be that you do not have the relationship checked to allow creation of related records !?

Harry

Harry,

That was it! Thanks!!!