Semi Noob seeks/wants help

bambii7

New Member
I have almost completed my form, so far fabrik is great!

I've run into promblems over the past couple of days when trying to add some custom java script (thats over my head to customize). The script is dependent on the <input>'s' css 'class' and 'id' I've been fluffing around in the php of fabrik.html.php to ajust some of the out putted code. I've come to the conclushion that the easiest way would be to include a non dynamic form feild into my template. Then request the values into the email. Where would I find the code that processes the form and emails?

Or ulternativly any one got any ideas on this? I'm quite the novice and close to giving up using funky JS. So sugestion's are welcome.
 
Ok just as i was posting that I found what i was looking for.

On line 2056: $elementHTMLId = 'mf_el_' . $elementHTMLName;

affects the css id

I changed it to: $elementHTMLId = 'colorfield-' . $parsed_name;
With $parsed_name being the elements title.

And on line 2585: $str = "<input class=\"color-$elementHTMLName\" $js type=\"$type\" name=\"$elementHTMLName\" $sizeInfo id=\"$elementHTMLId\" value=\"$value\" />\n";

affects the css class

I just changed the class to: class=\"color-field\"

Hope that helps someone.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top