The only way to achieve opening of a new form is to write some JavaScript using JSBridge. I would assume already that you know how to add commands and OfflineHTML within Woodford.

 

Below is an example of creating a new Customer Asset form via a Command on the Work Order Product Form. I am retrieving values on the Work Order Product form and passing them into the iFrameOptions object.

 

The Work Order Product HTML file:

 

Next you will need to create an Offline HTML file and add the iFrame onto the entity form you are opening. In this case we are opening a Customer Asset form to retrieve the values from the Work Order Product iFrame Object we were passing in above.

Below is an example of retrieving the iFrame Options from the Work Order Product record onto the Customer Asset form.

To get the values from the previous record, you need to access the values by using using entityForm.iFrameOptions

 

The Customer Asset HTML file:

 

This should of opened a new Customer Asset form with the ‘Name’, ‘Work Order Product’ and ‘Product’ Lookup prepopulated.

 

Hopefully this has helped 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *