Please note that Form2Content is no longer being developed. All files from the latest version can be found on Github.

Form2Content Forum

Questions and answers for Form2Content, a Joomla CCK.
  1. Mikhail Zoupas
  2. F2C field types
  3. Tuesday, 08 March 2016
  4.  Subscribe via email
Hello and thanks in advance. I have a DB multi select field but when you try to add a selection I get this error:

Uncaught TypeError: Cannot read property 'length' of undefined


in the file f2c_lists.js in function:

function addDbLookupkMultiRow(tableId, rowId)
{
var ddl = $(tableId+'_lookup');
var table = $("#" + tableId);
console.log(table);
var index = table.rows.length - 1; /* HERE IS THE ERROR */


Please help me understand what is wrong

Extension version 6.13.0

Mikhal Zoupas
Responses (5)
Accepted Answer Pending Moderation
Hi Mikhail,

Can you tell us you custom mysql query you are using?
PS let's call things bugs when we know they are :)

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. F2C field types
  3. # 1
Accepted Answer Pending Moderation
Sure... version is 6.13.0 and query is

SELECT id, title FROM #__content
WHERE catid = 13
ORDER BY title ASC
  1. more than a month ago
  2. F2C field types
  3. # 2
Accepted Answer Pending Moderation
Thank you, will ask Julien to have a look since my knowledge on the queries is too limited.

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. F2C field types
  3. # 3
Accepted Answer Pending Moderation
Please do, I tried to find out what is wrong but it just doesn't seem to work. Works fine with single select but multi-select just wont work.

Thank you

MZ
  1. more than a month ago
  2. F2C field types
  3. # 4
Accepted Answer Pending Moderation
Hello Mikhail,

I tried your query and it worked without a problem.

Can you send me an Akeeba backup of your site so I can see it myself?
You can send it to julien at opensourcedesign dot nl

Thanks!

best,
Julien
  1. more than a month ago
  2. F2C field types
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.