Text Auto-Complete

Ok…

I have some javascript that I’ve loaded into the “form onLoad” function in the Javascript settings.
It was working perfectly.

This is the javascript:
do_ajax_pick_ticket_items_sub_form_add_new_line(0);
Basically making the form open with a new row instead of having to click the “add new” button.

Then I added a Text Auto-Complete field.
As soon as I add the auto text field, the javascript in the “form onLoad” function no longer works…

Any thoughts?

Dave

Re: Text Auto-Complete

You may have to post your code. I would suspect a syntax error. That usually is the cause for JS to just quit working.

Regards,
Scott.

Re: Text Auto-Complete

That one function is the only code I’ve personally added.

do_ajax_pick_ticket_items_sub_form_add_new_line(0);

I added it to the javascript “onload” function.

Like I said, it works fine until I add a Auto-Complete Text field. Then it stops working. I don’t have any JS code on my Auto-Complete field other than what is auto generated by SC.

Let me know if I’m missing something else I should be posting code-wise.

Dave

Re: Text Auto-Complete

You may have to look at the error console and see why it breaks.

FF/ Tools/ Error console
Chrome/ Tools/ Developer Tools

Regards,
Scott.