Form_Helper 1.9 has trouble with identically named fields
Posted: 22 March 2008 12:17 AM   [ Ignore ]
Member
Avatar
RankRankRank
Total Posts:  63
Joined  2005-03-31

If you have the same field name in multiple field groups, and you’re using a custom pulldown, the plugin has trouble telling one from the other.  For example, if you have a field called “app_legal” in two different field groups, this code won’t reliably return the right value:

{exp:form_helper:custom_pulldown entry_id="{entry_id}" field_name="app_legal"}
<option value="{value}" {selected}>{value}</option>
{/exp:form_helper:custom_pulldown}

TTFN
Travis

Profile
 
 
Posted: 01 April 2008 01:39 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

You shouldn’t be able to have two fields named the same.... or maybe I’m misunderstanding you… wink

 Signature 
Profile
 
 
Posted: 01 April 2008 01:45 PM   [ Ignore ]   [ # 2 ]
Member
Avatar
RankRankRank
Total Posts:  63
Joined  2005-03-31

You can, in different sites.  It’s kind of handy in some cases, actually, and lets you reuse code really efficiently.

http://expressionengine.com/docs/modules/weblog/parameters.html#par_orderby

“If you have multiple Sites where each site has a custom field with the same, exact short name, then you can specify that short name (without the site specified) and ExpressionEngine will treat those two fields as the same value and be able to order them as if they were the same field.”

Profile
 
 
Posted: 01 April 2008 01:49 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Oh, you’re talking MSM?

 Signature 
Profile
 
 
Posted: 01 April 2008 01:52 PM   [ Ignore ]   [ # 4 ]
Member
Avatar
RankRankRank
Total Posts:  63
Joined  2005-03-31

Yes.

Profile
 
 
Posted: 02 April 2008 07:08 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Hop,

I’ve tested this out a bit, and cannot seem to duplicate any issue.
Could you go a little more indepth about where this is happening and what is happening, etc? smile

Thank you

 Signature 
Profile
 
 
Posted: 02 April 2008 03:05 PM   [ Ignore ]   [ # 6 ]
Member
Avatar
RankRankRank
Total Posts:  63
Joined  2005-03-31

Create blog1 on site 1.  Use fieldgroup 1.  Create a pull-down field called “mailing-list” with values YES, NO, MAYBE
Create bog2 on site 2.  Use a new fieldgroup 2.  Create (on site 2) a new pull-down field called “mailing-list” with values SURE, NOPE, WHATEVER

Now, using form helper, set up a form to allow you to edit the values of mailing-list.  The contents of that list will be confused, and none will appear selected even if one actually is selected in your entry.

See also: http://www.solspace.com/forums/viewthread/336/

TTFN
Travis

Profile
 
 
Posted: 03 April 2008 07:06 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

I’ve tried this with both your problem being Select Dropdowns, and the other thread, where Text Area’s were the problem....

I could not duplicate the problem. Which version and build of ExpressionEngine are you using?

Also, is it possible you can tell me the exact fields and path to templates (and entries) that are having the problem, as well as give me CP access?

Thanks smile

 Signature 
Profile
 
 
Posted: 03 April 2008 12:21 PM   [ Ignore ]   [ # 8 ]
Member
Avatar
RankRankRank
Total Posts:  63
Joined  2005-03-31

Sorry, no.  I’ve already worked around the issue, and I don’t have time right now to help you troubleshoot it.  Good luck!

TTFN
Travis

Profile
 
 
Posted: 21 April 2008 06:44 AM   [ Ignore ]   [ # 9 ]
Newbie
Rank
Total Posts:  1
Joined  2007-03-23

Pie Man, if thru MultipleSiteManager you CAN have same field_names then
i would see a problem on line 158 of form_helper(1.9). It looks like
it doesn’t check for site_id, does it?

$query $DB->query("SELECT field_id FROM exp_weblog_fields WHERE field_name = '$field_name'");

Profile
 
 
Posted: 21 April 2008 12:28 PM   [ Ignore ]   [ # 10 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Form Helper is old school free software. Poor thing has been neglected for some time now. It has no idea about the concept of multiple sites.

Pie Man, can we get this on the new guy’s to do list?

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 03 September 2008 09:39 AM   [ Ignore ]   [ # 11 ]
Newbie
Rank
Total Posts:  12
Joined  2006-01-12

I realize you probably follow EllisLab’s policy of not giving estimates of software releases, but I’m going to ask anyway: Do you have a rough estimate of when Form Helper will be MSM-aware?

I stupidly built an entire project for a client based on the assumption that it wouldn’t be a problem, and now I’m faced with having to tell them we need to find another way unless I can get a new version soon.

Is there a “time horizon” for this update?

Thanks in advance,
Ken

Profile
 
 
Posted: 03 September 2008 10:10 AM   [ Ignore ]   [ # 12 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Ken,

You’re probably looking at about another 3 months. wink

You should still be able to use it with MSM, but certain things are limited.

 Signature 
Profile
 
 
Posted: 03 September 2008 10:34 AM   [ Ignore ]   [ # 13 ]
Newbie
Rank
Total Posts:  12
Joined  2006-01-12

Pie Man,

Thanks for that info. Looking forward to it.

Ken

Profile