I'm using EntityForms to allow the user enter data. I use Views to present/review that data and, with editable fields, allow the user to modify that data, i.e., make adjustments when they see the full table of collated records.

I would like the user to be able to click an "add new" button or link and have a new blank row open up where they can enter a new record in the View. Right now I have to send them back to the full entityForm and then back to the View, which is horrible and confusing for users, and not intuitive. I have found references to ways to add a new field, but I don't want to change the fields/structure in the record. I just need to add another line item record to the dataset with the existing structure/collection of fields.

It would seem that this would be a common/obvious need, but I cannot find any module, recipe or workaround to achieve this.

Any suggestions are very welcome.

Comments

sprite’s picture

Try creating a block to display on the page with the view, with a link button in the block to create a new node of the type displayed by the view. Upon creation of the new node, the page with the view will restore and update itself because the block will have maintained context with the displaying page.

spritefully yours
Technical assistance provided to the Drupal community on my own time ...
Thank yous appreciated ...

hondaman900’s picture

Thanks Sprite for the quick response.

Are you saying create the new node/entity in the block?

If I simply have a link to a new node in the block, wouldn't that redirect the user to that new content form page? If so, haven't I just sent the user away and need to get him back (which I can do by encoding a return destination, but still...)? Apologies, but not sure if I'm getting it...