Search form Errors report and Questions !

Hi friends,
trying to add a search form for a list, like in the tutorial : http://fabrikar.com/help/tutorials/details/3/26
At this time I've got just one element to see if it's work. But no luck with this and have an error from the console, preatty sure it's about this test.
Code:
TypeError: require is undefined
error source line: 218
require.config({

Code:
 <scripttype="text/javascript">
 
require.config({
    baseUrl: 'http://pglocal/',
    paths: {
        fab : 'media/com_fabrik/js',
        element : 'plugins/fabrik_element',
        list : 'plugins/fabrik_list',
        form : 'plugins/fabrik_form',
        cron : 'plugins/fabrik_cron',
        viz : 'plugins/fabrik_visualization',
        admin : 'administrator/components/com_fabrik/views',
        adminfields : 'administrator/components/com_fabrik/models/fields'},
    shim: {"fab\/fabrik":{"deps":["fab\/mootools-ext","fab\/lib\/Event.mock","fab\/tipsBootStrapMock"]},"fab\/window":{"deps":["fab\/fabrik"]},"fab\/elementlist":{"deps":["fab\/fabrik","fab\/element"]},"fabrik\/form":{"deps":["fab\/element","lib\/form_placeholder\/Form.Placeholder","fab\/encoder"]},"element\/dropdown\/dropdown":{"deps":["fab\/element"]}}
});
 
 
window.addEvent('fabrik.loaded', function () {
    Fabrik.liveSite = 'http://pglocal/';
    Fabrik.bootstrapped = true;
    Fabrik.tips = new FloatingTips('.fabrikTip', {"tipfx":"Fx.Transitions.linear.easeIn","duration":"500","distance":50,"fadein":false});
    Fabrik.addEvent('fabrik.list.updaterows', function () {
        // Reattach new tips after list redraw
        Fabrik.tips.attach('.fabrikTip');
    });
    Fabrik.addEvent('fabrik.plugin.inlineedit.editing', function () {
        Fabrik.tips.hideAll();
    });
    Fabrik.addEvent('fabrik.list.inlineedit.setData', function () {
        Fabrik.tips.attach('.fabrikTip');
    });
});
require(['http://pglocal/components/com_fabrik/libs/slimbox2/js/slimbox2.js'], function () {
 
});
 
 
require(['fab/fabrik', 'fab/window', 'fab/lib/form_placeholder/Form.Placeholder', 'fab/form', 'fab/element', 'fab/elementlist', 'element/dropdown/dropdown'], function () {
        var form_22 = Fabrik.form('form_22', 22, {"admin":false,"ajax":true,"ajaxValidation":false,"primaryKey":"","error":"Echec de la validation","pages":{"0":[231]},"plugins":[],"multipage_save":0,"editable":true,"start_page":0,"inlineMessage":true,"rowid":"0","listid":0,"images":{"alert":"icon-exclamation-sign  ","action_check":"icon-action_check  ","ajax_loader":"<i class=\"icon-spinner icon-spin\"><\/i>"},"fabrik_window_id":"","submitOnEnter":false,"hiddenGroup":{"231":false},"maxRepeat":{"231":0},"minRepeat":{"231":0},"showMaxRepeats":{"231":false},"join_group_ids":[],"group_repeats":[],"group_joins_ids":[]});
    form_22.addElements(
{"231":[["FbDropdown","___Typologie",{"repeatCounter":0,"editable":true,"value":[""],"label":"Typologie","defaultVal":[],"inRepeatGroup":false,"fullName":"___Typologie","watchElements":[],"canRepeat":false,"isGroupJoin":false,"joinid":0,"allowadd":false,"data":{"studio":"Studio","t2":"2 pi\u00e8ces","t3":"3 pi\u00e8ces","t4":"4 pi\u00e8ces","t5":"5 pi\u00e8ces","maison":"Maison","local_pro":"Local professionnel","local_com":"Local commercial","park":"Parking"}}]]}
    );
 
 
 
    new Form.Placeholder('.fabrikForm input');
    function submit_form() {
    return false;
}
function submitbutton(button) {
    if (button=="cancel") {
        document.location = '/index.php?option=com_fabrik&amp;task=viewTable&amp;cid=';
    }
    if (button == "cancelShowForm") {
        return false;
    }
}
});
 
 
</script>
Form under the default template !
So no Sav button action, for going to the filtered List. And the line 218 is this script.
I'm trying to have a Search form on list with join, so some elements for the form have to be copy from Master Form and some from " Automaticall Joins group " ?

Under the FF console Web I could have this
[12:59:36,347] Une cha?ne vide a ?t? transmise ? ? getElementById() ?. @ http://pglocal/media/jui/js/jquery.js:140
each time I click on save button ....
 
Ok I rebuild the form,
Strange that even if it publish into all pages, I get the form's button search ok only into certain pages.
I've enable farikdebug and got this informations :
Code:
form:getData from $_REQUEST
 
Array
(
    [option] => com_k2
    [view] => form
    [layout] => bootstrap
    [task] => category
    [id] => 6
    [Itemid] => 134
    [fabrikdebug] => 1
    [featured] => 1
    [limit] => 14
    [formid] => 22
    [ajax] => 1
)
 
form:data
 
Array
(
    [option] => com_k2
    [view] => form
    [layout] => bootstrap
    [task] => category
    [id] => 6
    [Itemid] => 134
    [fabrikdebug] => 1
    [featured] => 1
    [limit] => 14
    [formid] => 22
    [ajax] => 1
)
 
note
form:view:groups
 
Array
(
    [Moteur de recherche] => stdClass Object
        (
            [editable] => 1
            [canRepeat] => 0
            [css] =>
            [id] => 231
            [title] =>
            [name] => Moteur de recherche
            [displaystate] => 0
            [maxRepeat] => 0
            [minRepeat] => 0
            [showMaxRepeats] =>
            [canAddRepeat] =>
            [canDeleteRepeat] =>
            [intro] =>
            [outro] =>
            [columns] => 1
            [splitPage] => 0
            [tmpl] => group
            [elements] => Array
                (
                    [Typologie] => stdClass Object
                        (
                            [startRow] => 1
                            [endRow] => 1
                            [error] =>
                            [plugin] => dropdown
                            [hidden] =>
                            [id] => ___Typologie
                            [className] => fb_el____Typologie
                            [containerClass] => fabrikElementContainer plg-dropdown fb_el____Typologie fabrikDataEmpty
                            [element] => <select id="___Typologie" name="___Typologie[]" class="fabrikinput inputbox">
    <option value="studio">Studio</option>
    <option value="t2">2 pi&egrave;ces</option>
    <option value="t3">3 pi&egrave;ces</option>
    <option value="t4">4 pi&egrave;ces</option>
    <option value="t5">5 pi&egrave;ces</option>
    <option value="maison">Maison</option>
    <option value="local_pro">Local professionnel</option>
    <option value="local_com">Local commercial</option>
    <option value="park">Parking</option>
</select>
 
                            [label_raw] => Typologie
                            [label] => <label for="___Typologie" class="fabrikLabel control-label">Typologie</label>
                            [errorTag] => <span class="fabrikErrorMessage"></span>
                            [element_ro] =>
                            [value] => Array
                                (
                                    [0] =>
                                )
 
                            [element_raw] => Array
                                (
                                    [0] =>
                                )
 
                            [tipAbove] =>
                            [tipBelow] =>
                            [tipSide] =>
                            [containerProperties] =>
                            [column] =>  style="clear:both;width:100%;"
                            [span] =>
                            [offset] => 0
                        )
 
                )
 
            [subgroups] => Array
                (
                )
 
            [startHidden] =>
        )
 
)
And this notice :
Code:
SyntaxError: JSON.parse: unexpected character
Typologie
And the Form's redirect configuration attach !

Any idea ?
 

Attachments

  • SearchEngine.jpg.jpg
    SearchEngine.jpg.jpg
    196.2 KB · Views: 491
I'd would need to see the site URL to be able to comment, can you post that?

thx
 
Hi Rob,
I've re publish so My test (Form for search engine), you could access to the web site by My Sites Info !
Let me know if I could do more ;)
 
Update from Git and seems better but I've no result when I expect some :(
And under backend, edit is ok but alter value into repeat group on the form :(

Then List (end) Layout is not the same than I could have by the menu link, it's like the form link to the default list layout, when I've cfg a template for this list (by the module cfg and by the list cfg)
 
Rob the search form is on all pages just at the right of logo at this time I've just two element publish on it : Dropdown Ville & Typologie.

This search form have id : 14 (is black under j! don't really know why) and the list to filter is the id : 7
Let me know if something else I'm here and waiting for U ;)
 
I could be on Zopim with you if needed for explain ... but Hugh have some informations about my goal ... I make only one live chat and I know Zopim sav discussion so let me know
 
I'm seeing this one your site now:

"Error displaying the error page: Application Instantiation Error"

Perhaps a configuration.php error?
 
Arf Yes I made an upload at this time (Small upload Bandwidth here :( ) for updating my script online test ! Sorry ....
I'll be back here to let you know when all stuf are upload
 
Ok Rob feet to your request : "Test without record into database and let me know" ....
Sorry to return you that is not a solution ... I gonna remake the form feet to the tut and see if something better.

But at this time I don't have any redirect page, just a refreshing page !
Let me kno if you could help me with this one please ;)
 
Ok redo the stuff ... difference vs the tut, I looking for having the search form into a module !
But if I do like this search form give me an error (in certain position in my template):
: SyntaxError: Unexpected token <
fabrik.js:17
And for other position I've the sav button don't fire !

And when I do like the tut show me : No filter but go the right list's page without any filter.

Can you please help me on this ........... please ?
 
It's better without this syntaxError but now :
Search form from a module position : I've an other error :
Error: 0 - SQL=
And for the search form from a contentpage, link to the good list's page BUT NO filter for the end list :(

Note : Rob in the tut I don't really know if the end list "task" have some prefilter ... Never mind do you think it's ok for me to have a search like this tut (but I prefere in a module !) with a list having a prefilters on it ?

I update now my online website test for showing you if you have some times for me ;)
I let you know when up to date so ... ok ?
 
Website online is up to date so now !

Let me know if I could do more to help with MY issue ;)

Note : if I've input a good info into the "ref" : a field element, the form (like the tut into a page) link to the right list's item ! So it's very better Rob with latest Git .... But with other dropdown element i could not be able to filter the list :(
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top