All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Low Variables Custom Field

Gareth 3 Oct 2011 10:35 question, complete

Can you tell me if the following is possible and if so how I could make it work:

I have a view template which outputs a single channel entry dynamically. I would like to be able to enter a specific Wufoo form for each individual entry. This can be done by either pasting the code into a channel entry field or using a relationship field and having a separate channel which holds all the Wufoo code.

Rather than do this could I create a low variable group to hold all the individual Wufoo form code and add a custom field in the channel entry that shows you a drop-down to select the correct low variable for that entry?

Many thanks

Gareth

Replies

  1. Low 3 Oct 2011 16:20

    Hi Gareth,

    You probably could do this, but only if the Wufoo code does not contain any EE variables or tags. I'd try something like this:

    - Create x Low Variables for each Wufoo form available, and give them unique names.
    - Use each of those names as options for a Dropdown field in your channel fields (or use one of the free Pixel & Tonic fields).
    - In your template, use something like {{cf_my_dropdown}} with double curly brackets.

    The entry custom field {cf_my_dropdown} will be replaced with the variable name, resulting in something like {lv_my_wufoo_form_1}. Because it is a late parsed var, it will be replaced after the tags are done.

  2. Gareth 4 Oct 2011 05:00

    Hi Low,

    Thanks for the above, would i be correct in saying that each time I add a new channel entry and a new wufoo form in low variables I would also have to update the custom dropdown field options with the new unique name?

    In other words if I just use a channel to hold all the wufoo form entries I could create a relationship field and then there is only two places to update not 3.

    Many thanks

    Gareth

  3. Low 4 Oct 2011 06:52

    Yeah, creating a separate channel for your Wufoo forms would probably be a better idea.

  4. Gareth 4 Oct 2011 08:35

    Thanks for looking at this for me Low, much appreciated, it's always worth trying different ways of doing things. :-)