Topic on Extension talk:Semantic Forms Inputs

Installed, but doesn't seem to take effect

9
Iisai1821 (talkcontribs)

Hi, I'm having trouble getting SFI to work at all on my site. I have it installed (confirmed by the Version page), as well as MediaWiki (1.18.1), Semantic MediaWiki (Version 1.7.1), Semantic Forms (Version 2.4.2), etc. However, when I try adding SFI fields (I copied the Datepicker, Timepicker, and Menuselect examples exactly), it's as though SFI isn't installed at all, I just get the regular text input field, (and a list below it for menuselect). I do get a Javascript error

jQuery("#sfForm").data("SemanticForms") is undefined,

but I'm not sure it's related, as I get the same error sometimes when there aren't any SFI fields on the page. I've tried the development version as well, and it doesn't seem to change anything.

I'm pretty much out of ideas; any help appreciated!

F.trott (talkcontribs)

Hi. The JavaScript error is related in that it crashes JavaScript. All the SFI inputs are designed to fall back to some standard input in case JavaScript is not available. That is what you see. Do you by any chance use a custom skin?

Iisai1821 (talkcontribs)

I'm using the 'danger' skin, but I just tested it in 'standard' and 'vector' and got the same results.

Thanks for your reply!

Iisai1821 (talkcontribs)

On further investigation, the Javascript error only occurs when I 'Preview' a form - it isn't caused by the SFI field, and when I just save the form, with the field, without preview, there are no Javascript errors, and the datepicker and datetimepicker work! However, the menuselect field, which is what I really want to use, still doesn't. When the extension page says This does currently only work in the development version on SVN. does that refer to the whole menuselect field, or just linking internally?

F.trott (talkcontribs)

Up until yesterday I would have said, that sentence should be dropped. I tried it yesterday on an 1.18.3 mediawiki and it seemed to work. Can you try if it works on http://scratchpad.referata.com?

Iisai1821 (talkcontribs)
F.trott (talkcontribs)

Very good, that helps a lot. I will investigate what could be the problem and come back to you.

Cheers,

F.trott (talkcontribs)
Iisai1821 (talkcontribs)

Hooray, that works! Sorry about my delay at getting back to you and thank you so much for your help!

Reply to "Installed, but doesn't seem to take effect"