... or is there a better way?
I want to create a table view,
listing current publications (node type)
that can be ordered in hardcopy (free)
and provide a checkbox or quantity field
that becomes an email/order form

------------------------------
I would like to order :
Annual report 2008 []
Company brochure []
Activity sheet 1 []
---
Name [ ]
Address [ ] etc
------------------------------

At the moment, it looks like embedding a form makes a whole lot of stand-alone forms. Which makes me think this is not the right fit.
Can you suggest a way to make this happen? I'd be happy (and probably capable) to code in an option to do this sort of thing within this module if you think it's possible.

Even better if you've seen an alternative way to do this.

Thanx
.dan.

Comments

usa2k’s picture

meba’s picture

Status: Active » Closed (won't fix)

Views embed forms allows embedding standalone forms only, sorry. Try editablefields, it look awesome!

dman’s picture

I've used editablefields before - for mass caption updates and tagging on image nodes.
But my requirement at the moment is NOT node manipulation, it's creating a webform-type form whose displayed fields are populated from a view.
I've almost figured it out, using form_alter on my webform and invoking the view programatically to meld my rows into the middle.

I'm still to figure out how to get webform to accept and save my values, but I think I can see a way through.

Ah well, not views embed form anyway. Thanks anyway!

usa2k’s picture

The last couple days I've also experimented with http://drupal.org/project/formblock
I'm testing the panels module with it, but it can be displayed in the blocks
configuration also.

You can limit the fields seen using content_permissions from CCK, you can define
a Role that can only show certain fields, and can only edit certain fields for that Role..

This has been an exciting learning experience for me. Perhaps that is closer to
what you need? Maybe I am way off, but I thought it was worth mentioning.

EDIT: Seeing you've been around here years compareds to my weeks, I fear I am not
telling you anything new!!!

Tiquelou’s picture

Please help me understand how views_embed_form module works:

function testmodule_views_embed_form() {
  if (user_access('administer content')) {
    return array(
        // Key in this array is the name of a form and also the name of a form function.
        'testmodule_form' => t('Form for testing module'),
        // Value in this array is a human-readable name of the form, use t() to allow internationalization.
        'testmodule_basket_form' => t('Add to basket form'),
        );
  }
}

In which file should this be added? Are there any rules that we have to follow for function name?

I am getting a "500 - Internal server error" whenever I am adding this function in views_embed_form.module or the .module of the module I want to use.

Thanks in advance!