Extension talk:Semantic Forms Inputs

Jump to: navigation, search

About this discussion

By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL

Styling for datepicker fields is only applied to mandatory fields in SF 3.2

3
Lbillett (talkcontribs)

I noticed that with SF 3.2, the fancy new css applied to input fields is not applied to fields with input type=datepicker (or datetimepicker) unless the field is also set as mandatory. Functionally things are fine. Afraid that's the extent of my ability to help.

Kghbln (talkcontribs)

I can confirm this but never got around reporting it. I added the following including some other modification to "MediaWiki:Common.css" to enforce the same appearance for datepickers:

/* Semantic Forms Inputs */
.hasDatepicker {
    width: 95px;
    border: 1px solid #bbb;
    border-radius: 3px;
    display: inline-block;
    margin-left: 0;
    max-width: 100%;
    padding: 4px 8px;
}
Reply to "Styling for datepicker fields is only applied to mandatory fields in SF 3.2"

Ubuntu SWM Semantic Form date picker error: jquery.ui.position: Error Module jquery.ui.position has failed dependencies

2
Fustbariclation (talkcontribs)

I'm having a problem with date picker in a Semantic Form. I'm getting this error message:

jquery.ui.position: Error Module jquery.ui.position has failed dependencies

I've tried to find a solution, but, so far, no luck. Any suggestions?

Ubuntu: 3.16.0-31-generic #43-Ubuntu SMP Tue Mar 10 17:37:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

MediaWiki Versions look OK - all current.

F.trott (talkcontribs)

No idea. Maybe you could try to set debug=true in the URL and then find the actual trigger of the error using Firebug or the like.

Reply to "Ubuntu SWM Semantic Form date picker error: jquery.ui.position: Error Module jquery.ui.position has failed dependencies"

Datepicker error: Undefined offset: -1 in [...]/extensions/SemanticFormsInputs/includes/SFI_DatePicker.php on line 287

1
Zabien (talkcontribs)

Hello,

I get this datepicker error on two wikis, running on 1.23.1 /SFI 0.9.0 alpha and 1.23.6 / SFI 0.7.

  • Undefined offset: 0 in [...]/extensions/SemanticFormsInputs/includes/SFI_DatePicker.php on line 283
  • Undefined offset: -1 in [...]/extensions/SemanticFormsInputs/includes/SFI_DatePicker.php on line 287

The corresponding lines in the PHP file are about the minDate and maxDate.

281 // correct min/max date to the first/last allowed value
282 				if ( !$minDate || $minDate < $enabledDates[0][0] ) {
283 					$minDate = $enabledDates[0][0];
284 				}
285 
286 				if ( !$maxDate || $maxDate > $enabledDates[count( $enabledDates ) - 1][1] ) {
287 					$maxDate = $enabledDates[count( $enabledDates ) - 1][1];

I can acces, fill in and save the form, but would quite like to get rid of the error message. I have taken out the "data format" part, but with no effect. Any ideas what I could do to fix this error?

Reply to "Datepicker error: Undefined offset: -1 in [...]/extensions/SemanticFormsInputs/includes/SFI_DatePicker.php on line 287"
Kghbln (talkcontribs)

The last version was officially released in May 2013. In the meantime amongst others the big I18n change catering for new versions of MW has occurred. I guess this will make upgrading easier for people.

Reply to "What about doing a 0.8.0 release?"
AdSvS (talkcontribs)

Hi, in the datepicker.js code the showButtonPanel is 'false' because there seemed to be a bug with the button panel. When I change the showButtonPanel to 'true' however it seems to work fine.

Is it safe to make it 'true' and if it is, could there be a type specific parameter for this?

F.trott (talkcontribs)

If it works, set it to true.

(Before implementing new params the whole thing could use a makeover of the code, including an update of the widget.)

Reply to "Today button"

Will this extension be made available though Composer ?

2
Heinrich krebs (talkcontribs)

That's pretty much the question: Will this extension be made available though Composer ?

F.trott (talkcontribs)

Not in the short term, I am afraid. Unless somebody provides a patch.

Reply to "Will this extension be made available though Composer ?"

menuselect and datepick acts innormal, seems something wrong with the JS

3
121.33.247.50 (talkcontribs)

MediaWiki 1.22alpha (8b6be1c) 1.22wmf21 Semantic Forms (版本2.6) Semantic Forms Inputs (版本0.7)

i have testest the simplest Form, containing only a single {{{field}}}, and copied the example menuselect codes.

after i have saved, i can see the top lev contents with the triangle icons, but the lev2 triangle icons shows up too without text content. When i move mouse on it, nothing pop out.


Another problem with datepicker: the set of icons used to select date occurs twice in the same line, and both function normally.

both 2 problems could turn normal after i do a search,(i am using this form as a query form, so i can search on the same page)

121.33.247.50 04:23, 14 November 2014 (UTC)

Extirpate (talkcontribs)

finally, i found that this is the problem of menuselect and queryformlink

when i use menuselect in a normal form invoked by {{#formlink}} , everything is ok.

but when i use menuselect in a form invoked by {{#queryformlink}}, then this bug occurs.

is there anyone can help? thx!

F.trott (talkcontribs)

This should be fixed in the latest SF development version. Please give it a try.

Reply to "menuselect and datepick acts innormal, seems something wrong with the JS"

Menuselect Warnhinweis: Eine Teilabfrage enthält eine ungültige Bedingung

3
Seppl2013 (talkcontribs)

Trying to use the MenuSelect https://www.mediawiki.org/wiki/Extension:Semantic_Forms_Inputs#Examples_4 as outlined in the example

{{{field|Part of|input type=menuselect|structure= {{#ask: [[Part of::+]]{{!}} format=tree{{!}} parent=Part of }} }}}

I get the error message: Warnhinweis: Eine Teilabfrage enthält eine ungültige Bedingung the simple example

{{{field|foo|input type=menuselect
|structure=
* Item 1
** Item 11
** Item 12
* Item 2
** Item 21
** Item 22
}}}

works as expected. Neither

'''Thema:''' {{{field|Thema|input type=menuselect|structure={{#ask: [[Category:BITPlanStandard]] {{!}} ?nr {{!}} format=tree {{!}} parent=nr {{!}} limit=70 }} }}}

nor

'''Thema:''' {{{field|Thema|input type=menuselect|structure={{#ask: [[Category:BITPlanStandard]] {{!}} format=tree {{!}} parent=nr }} }}}

nor

'''Thema:''' {{{field|Thema|input type=menuselect|structure={{#ask: [[Thema::+]]{{!}} format=tree{{!}} parent=Thema }} }}}

work - all give the same error message.

All these ask queries used on their own work as expected.


Versions:

  • MediaWiki 1.23.5 (a80a0a2) 19:06, 13. Okt. 2014
  • Semantic Forms 2.8 (8bdcec3) 21:31, 6. Okt. 2014 GPL-2.0+ Ermöglicht Formulare zum Hinzufügen und Bearbeiten semantischer Daten Yaron Koren, Stephan Gambke und andere
  • Semantic Forms Inputs 0.9.0 alpha (329a4b7) 19:14, 27. Aug. 2014 GPL-2.0+ Ermöglicht verschiedene zusätzliche Eingabearten für Semantic Forms Stephan Gambke und andere
  • Semantic MediaWiki 2.0 GPL-2.0+ Ermöglicht es, das Wiki zugänglicher zu machen – für Menschen und Maschinen (Dokumentation) Markus Krötzsch, Jeroen De Dauw, James Hong Kong und andere
  • Semantic Result Formats 1.9
Seppl2013 (talkcontribs)

The example is wrong ... {{!}} should not be used but the verbatim | So e.g.:


'''Thema:''' {{{field|Thema|input type=menuselect|structure={{#ask: [[Category:BITPlanStandard]]  | format=tree | parent=nr | limit=70 }} }}}

works. I feel stupid :-) Please fix the example so other's won't get into this feeling, too ...

F.trott (talkcontribs)

Indeed? Could be something changed with latest changes in Semantic Forms. Anyway, fix it yourself, it's a wiki.

Reply to "Menuselect Warnhinweis: Eine Teilabfrage enthält eine ungültige Bedingung"
189.147.159.105 (talkcontribs)

for "input type=date" works the next:

{{{field|date|input type=date|default=now}}}

but, for "input type=datepicker" does not works "default=now"


how can i do that datepicker field prints the current date?

Reply to ""datepicker""
Clifford.kasper (talkcontribs)

Setup

MediaWiki 1.21.2
PHP 5.3.17
MySQL 5.5.33
Lua 5.1.5
Semantic Forms Version 2.7
Semantic Forms Inputs Version 0.7

I have tried SFI 0.9alpha with the same results.


Issue
I keep getting the following error:
Ext.semanticforms.main: TypeError: Cannot read property ‘initFunctions’ of undefined

I have tried different browsers and different accounts, updated extension file permissions, etc with no luck. When I use F12 in Chrome is makes a reference to the Vector skin but I'm not sure what to make of it. Can anybody help me?

Thanks.

F.trott (talkcontribs)

Sorry, I totally missed this. If it is still of interest, my best guess is that some JavaScript error (possibly from another extension) prevents the main SF module to load. Check the browser console JavaScript errors (Ctrl+Shift+J on FireFox).

Reply to "SFI not working -- Giving error"