<![CDATA[ Feedback & General Conversation - My Forums]]> https://forums.modx.com/thread/?thread=81911 <![CDATA[Re: Feedback & General Conversation]]> https://forums.modx.com/thread/81911/feedback-general-conversation?page=3#dis-post-497521 charless May 09, 2014, 10:13 PM https://forums.modx.com/thread/81911/feedback-general-conversation?page=3#dis-post-497521 <![CDATA[Re: Feedback & General Conversation]]> https://forums.modx.com/thread/81911/feedback-general-conversation?page=3#dis-post-497094
thank you for this great add-on!

Two things...

First:
I had a problem with checkboxes in the email send, values were empty. Just a 'value is an array' message in Error Log.
so i changed 'core/componenents/mxformbuilder/model/mxformbuilder/mxformbuilder.class.php' line 1263f to:

if ($field['type'] !== 'buttonsubmit' && $field['type'] !== 'buttonreset' && $field['type'] !== 'button') {
  $label = $field['name'];
  $value = $properties[$properties['root']][0][$field['mapping']];
  if($field['staticrule'] !== 'spambot'){
    if(!is_numeric($label)){ 
      if (!is_array($value)) {
        $tr.='<tr><td valign="top">'.$label.'</td><td valign="top">'.nl2br($value).'</td></tr>'.PHP_EOL; 
        $alllist[] = $field['mapping'].'='.$value;
      } else {
        $tr.='<tr><td valign="top">'.$label.'</td><td valign="top">';
                               
        foreach ($value as $key => $value2) {
          $tr.= $value2.'<br>';
        }
                               
        $tr.='</td></tr>'.PHP_EOL; 
      }
    }
  }
}



Second:
For HTML5 it is no longer valid to bind a label to an input with name="", instead we have to use id=""
again for checkboxes I changed the itemTpl label part to:

<label[[+mxfb.field.type:eq=`checkboxmulti`:then=``:else=` for="[[+mxfb.field.name]]"`]]>[[+mxfb.field.label]] [[+mxfb.field.isrequired:is=`1`:then=`<span>*</span>`:default=`[[+mxfb.field.staticrule:notempty=`<span>*</span>`]] `]]</label>


and added id to all input elements

Hope that helps

Regards
Robert]]>
robertk May 06, 2014, 08:24 AM https://forums.modx.com/thread/81911/feedback-general-conversation?page=3#dis-post-497094
<![CDATA[Re: Feedback & General Conversation]]> https://forums.modx.com/thread/81911/feedback-general-conversation?page=2#dis-post-494372
Cheers

Quote from: paulkoan at Mar 12, 2014, 03:15 AM
Hello Charles,

I am planning to build a form that uses "progressive profiling", ie if the visitor has already completed a form, we don't ask for the same information again, instead we ask for different info.

I am planning on doing this with a prehook, and just alter the form fields prior to rendering. However, I saw the Conditional Group field, and was wondering if I could use this somehow.

I cannot find any docs or reference to this field - can you point me in the direction of documentation, or let me know how it works?

Thanks,

Paul
]]>
charless Apr 05, 2014, 11:23 PM https://forums.modx.com/thread/81911/feedback-general-conversation?page=2#dis-post-494372
<![CDATA[Re: Feedback & General Conversation]]> https://forums.modx.com/thread/81911/feedback-general-conversation?page=2#dis-post-492417
I am planning to build a form that uses "progressive profiling", ie if the visitor has already completed a form, we don't ask for the same information again, instead we ask for different info.

I am planning on doing this with a prehook, and just alter the form fields prior to rendering. However, I saw the Conditional Group field, and was wondering if I could use this somehow.

I cannot find any docs or reference to this field - can you point me in the direction of documentation, or let me know how it works?

Thanks,

Paul]]>
paulkoan Mar 11, 2014, 10:15 PM https://forums.modx.com/thread/81911/feedback-general-conversation?page=2#dis-post-492417
<![CDATA[Re: Feedback & General Conversation]]> https://forums.modx.com/thread/81911/feedback-general-conversation?page=2#dis-post-491514 Quote from: snshoutz at Jan 17, 2014, 09:55 PM
Hi Charles,

I have had an issue on multiple sites (after reinstalls even) with mxFormBuilder dropping the value from the "Owners:" option. Not sure if this is an issue that has to do with caching, but it seems to be a random (but frequent) occurrence.

I appreciate you taking time to answer questions on this forum.

When you say its dropping the value are you referring to the form edit window not displaying the owners?]]>
charless Feb 28, 2014, 11:47 PM https://forums.modx.com/thread/81911/feedback-general-conversation?page=2#dis-post-491514
<![CDATA[Re: Feedback & General Conversation]]> https://forums.modx.com/thread/81911/feedback-general-conversation?page=2#dis-post-490434
I am having the same problem as stevehtz. The values in the "Owners" option keep dropping. We are not in production with our install yet and are trying to work out kinks like this. Is there a solution?

Also, it seems that submissions sometimes do not actually submit to the database. I have not found a pattern. It seems random at this point.

I appreciate any feedback/advice you can provide.

Thanks.]]>
lisamaas Feb 18, 2014, 09:36 AM https://forums.modx.com/thread/81911/feedback-general-conversation?page=2#dis-post-490434
<![CDATA[Re: Feedback & General Conversation]]> https://forums.modx.com/thread/81911/feedback-general-conversation?page=2#dis-post-487626
I have had an issue on multiple sites (after reinstalls even) with mxFormBuilder dropping the value from the "Owners:" option. Not sure if this is an issue that has to do with caching, but it seems to be a random (but frequent) occurrence.

I appreciate you taking time to answer questions on this forum.]]>
snshoutz Jan 17, 2014, 03:55 PM https://forums.modx.com/thread/81911/feedback-general-conversation?page=2#dis-post-487626
<![CDATA[Re: Feedback & General Conversation]]> https://forums.modx.com/thread/81911/feedback-general-conversation?page=2#dis-post-483489 wbbuilder Nov 19, 2013, 08:27 PM https://forums.modx.com/thread/81911/feedback-general-conversation?page=2#dis-post-483489 <![CDATA[Re: Feedback & General Conversation]]> https://forums.modx.com/thread/81911/feedback-general-conversation?page=2#dis-post-483467
Cheers

Quote from: wbbuilder at Nov 18, 2013, 10:09 PM
charles,

One more issue I was having just dawned on me. Please forgive my terminology as I am recalling this from memory, so my labels may be a little off.

Every one of the form fields was showing the "Custom Error Message" in red to the right of each form field. The forms that did not have this custom error message and/or validation rules also has some generic text displayed in red on the front end. I was trying to figure our why this message was showing before the submit button was hit? Any why any error message was showing when I did not add any text to this box in admin?

This text is usually hidden until the submit button is clicked and then onlly show is the verification rules are not met. I played around with this a bid, but was never able to see form fields without these messages. Am I missing something here?
]]>
charless Nov 19, 2013, 04:03 PM https://forums.modx.com/thread/81911/feedback-general-conversation?page=2#dis-post-483467
<![CDATA[Re: Feedback & General Conversation]]> https://forums.modx.com/thread/81911/feedback-general-conversation?page=2#dis-post-483385
One more issue I was having just dawned on me. Please forgive my terminology as I am recalling this from memory, so my labels may be a little off.

Every one of the form fields was showing the "Custom Error Message" in red to the right of each form field. The forms that did not have this custom error message and/or validation rules also has some generic text displayed in red on the front end. I was trying to figure our why this message was showing before the submit button was hit? Any why any error message was showing when I did not add any text to this box in admin?

This text is usually hidden until the submit button is clicked and then onlly show is the verification rules are not met. I played around with this a bid, but was never able to see form fields without these messages. Am I missing something here?]]>
wbbuilder Nov 18, 2013, 10:09 PM https://forums.modx.com/thread/81911/feedback-general-conversation?page=2#dis-post-483385