# Open a form in add mode from a Data View action button

**URL:** <https://www.five.org/t/open-a-form-in-add-mode-from-a-data-view-action-button/736>\
**Category:** How do I?\
**Created:** [October 30, 2026, 4:55pm UTC](https://www.five.org/t/open-a-form-in-add-mode-from-a-data-view-action-button/736 "2026-10-30T16:55:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeanXXIV](https://yyz2.discourse-cdn.com/flex030/user_avatar/www.five.org/jeanxxiv/32/548_2.png) [@JeanXXIV](https://www.five.org/u/JeanXXIV)\
**Post date:** [October 30, 2026, 4:55pm UTC](https://www.five.org/t/open-a-form-in-add-mode-from-a-data-view-action-button/736/1 "2026-10-30T16:55:37Z")

</div>

Hello!  
My users mostly work in a Data View. To open an existing record, they click on a field with a function attached to its “On Click” event.

This function opens the form for that record:

```javascript
function ShowDossierRecord(five, context, result) {
    five.selectRecord('Dossiers', five.field.DossierKey);
    return five.success(result);
}

```

However, to create a new record, the user must go to another menu to open the form list, then click the “+” button.

Is there a way to add an action button directly to the Data View that opens the Dossiers form in add mode, with an empty record ready to fill in?

I tried `five.selectRecord('Dossiers', null);` and `five.selectRecord('Dossiers');` without success.

I also tried `five.selectAction('Dossiers');`, but this opens the form list, and the user still needs to click the “+” button. So this does not really help.

What I would like is for my action button to do the same thing as the “+” button in the form list: open an empty form to create a new record.

Is this possible?

Thank you!

Jean
