Javascript: how to create a new record from a page/scene with two views?

Hi, the question is how could I create a new record from a page that has two views?

I am looking for a possibility to put a javascript in place for a button on a scene (i.e. knack-scene-render.scene_103) which includes two views (i.e. view_174 and view_360) to create a new record in a table (i.e. contracts) with all the data fields included in both views. How could I do this?