Extension talk:Page Forms

EditFilter Hook for popup windows
Is there an equivalent hook to the Mediawiki 'EditFilter' hook that I can use on Semantic form popups?


 * No, no hooks built in. --F.trott 22:37, 9 May 2011 (UTC)

Bug with non-english letters in category-selector?
Hello, I wanted to ask here before I submit a bug, as I'm not sure whether this is an issue with the Category Tree extension or with SF, but it seems that when using a Category-input field, the set category is not marked when editing the article again, if the category name contains any of the letters 'å', 'ä' or 'ö' (and probably more). Does anyone else experience this?

rotsee 12:05, 2 May 2011 (UTC)


 * Thanks for the bug report - I believe I just fixed that in SVN. Yaron Koren 18:35, 3 May 2011 (UTC)


 * Beautiful, thanks! rotsee 11:21, 4 May 2011 (UTC)

Using Forms to show optional Data?
Hello.

I know that the main goal of Semantic Forms is for input data... but, can I use it for display data? I want to show optional data, depending on some field. I can use "show on select" field option... but I cant use them like a normal page.

Example:

The inclusion of the graph is controlled by the "Ver Grafo" check box.

The page, doesn't have save button...

But the page, is not a "normal" page, because I can't include it. Also I can't use this things in a category page...

I'm wright ? Or there is some other solution...????

Thanks.

FDO.


 * If you want to do a "show on select" in a regular page, I don't think you can do that - collapsible tables might be helpful instead, though. Yaron Koren 18:38, 3 May 2011 (UTC)

Making edit summary a required field
This should be a fairly easy functionality to build into SF - any thoughts on how this could be accomplished? Thorncrag   00:16, 3 May 2011 (UTC)


 * It would require changing the PHP - right now there's no way to do that. It's an interesting idea for a feature, though. Yaron Koren 18:39, 3 May 2011 (UTC)

Multiple instance templates placement in template output
The multiple instance templates are absolutely great, but it seems that they insist upon outputting at the end of the template. Is there a way to allow them to be mixed in with the other elements of the template instead of at the end? For example, at the beginning of a template page. Perhaps I am doing something wrong. Thorncrag   19:47, 3 May 2011 (UTC)


 * They should show up on the page in the same order in which they appear in the form definition. Is that not the case? If so, can you reproduce the problem on a public wiki? Yaron Koren 20:44, 3 May 2011 (UTC)
 * This exemplifies what I'm referring to--is there a way to get the multi-instanced template to somehow be called from within the other template? The more I look, the less it seems that that is possible considering the way it's stored on the source page in a particular order.     Thorncrag    22:18, 3 May 2011 (UTC)


 * Ah - you're talking about one template call being embedded in another. It would certainly be helpful, but Semantic Forms can't support that, unfortunately. Yaron Koren 03:37, 4 May 2011 (UTC)
 * Perhaps I can accomplish this by nesting it within another parameter... will try that.    Thorncrag    00:13, 6 May 2011 (UTC)

Duplicate entries in autocomplete list
In our category structure, we have a toplevel category, e.g. "Contact" with several subcategories like "Contact DE", "Contact USA", "Contact Internal", "Contact External". In our forms we use the toplevel category for autocompletion. Since contacts can belong to several subcategories of "Contact", e.g. internal and DE, it apears once for the toplevel category and once for each subcategory it belongs to. Since I don't see a why this could be helpfull, could the autocomplete list check for duplicates and remove them? Tobias Rummelt 10:40, 4 May 2011 (UTC)


 * I can't duplicate that - are you using the latest version of Semantic Forms? Yaron Koren 13:51, 4 May 2011 (UTC)


 * I use SMW 2.1.2 and MW 1.16.2. Maybe I could try to reproduce it on your scratchpad. Tobias Rummelt 11:54, 6 May 2011 (UTC)


 * I could reproduce this behavior on Referata Scratchpad Tobias Rummelt 11:53, 10 May 2011 (UTC)


 * Cool, that was helpful. And now I know that you were talking about remote autocompletion. This was indeed a bug, that I just fixed in SVN. Yaron Koren 20:36, 10 May 2011 (UTC)

Fix for getting wikicode to work properly inside text fields
Perhaps it should be noted on the page that $smwgLinksInValues = true; not only allows links, but it also enables all other wikicode to function correctly inside a form field. not sure if this is intending or not, but it worked for me. Before setting that to true, wikicode in my text fields caused all sorts of issues. Cheers, Jon Povey 125.237.120.119 23:53, 6 May 2011 (UTC)


 * Feel free to add that to the documentation. Yaron Koren 04:34, 9 May 2011 (UTC)

Bug with maxlength
maxlength seems to work by restricting the number of characters the user can type into the form field. Correct? However if the user pastes text from another source, does not ever type anything in the field, and saves the form - the data is accepted, even if it is way over the maxlength setting.

Could this be changed so the check happens at submit time as well, to ensure the character limit is not exceeded?

Cheers, Jon P 125.237.120.119 00:07, 7 May 2011 (UTC)

Problem with WYSIWYG Extension
Generally the new WYSIWYG extension is better integrated with Semantic MediaWiki than the FCKeditor extension. For example the syntax of the semantic properties is not destroyed while editing a wiki page. Unfortunatelly there is a conflict with Semantic Forms. If I create a class and want to edit the new form I get the following error message:

Fatal error: Class 'FCKeditorParserOptions' not found in /var/www/mwtest/extensions/SemanticForms/includes/SF_FormUtils.php on line 398

It would be really great to get Semantic Forms working with WYSIWYG extension!

Thanks and greetings, --Filburt 17:54, 9 May 2011 (UTC)

Using WYSIWYG extension and Semantic Forms (Version 2.2-alpha)
Testing Semantic Forms (Version 2.2-alpha) (r88513) and WYSIWYG extension (Version 1.4.0_3 [B268], CKEditor 3.4.2 (revision 6041)) but as soon as is set in LocalSettings.php $wgDefaultUserOptions['riched_start_disabled'] = true; $wgDefaultUserOptions['riched_toggle_remember_state'] = true; The error Fatal error: Class 'FCKeditorParserOptions' not found in ...extensions\SemanticForms\includes\SF_FormUtils.php on line 399 occurs and while in normal edit mode the WYSIWYG extension works as describe, in form edit mode their is no toggle link (for text area) to switch to the WYSIWYG editor mode at all. --MWJames 12:20, 21 May 2011 (UTC)

Redlink: Open Form as Popup?
When I click on a redlink I would like the form to open as popup. Is this possible? --Planetenxin 17:24, 14 May 2011 (UTC)


 * That's an interesting idea - would you want that for all red-links on the wiki, or only for certain properties? Yaron Koren 14:58, 16 May 2011 (UTC)

Is it possible to use previous/preloaded values in constructing a form?
I'm using a form to create items that have a many-to-one relation to a certain "parent page". Technically, I would have preferred to be able to create all the sub pages with a single form, but I've managed to get it done by simply adding a form-link to the parent page's edit form (only appears if the parent page was already created, using #ifexist).

Now I have a different problem. I want the sub-pages to interlink. That is, I want a field in the sub-pages' form to be pre-filled with the sub-pages for the same "parent page". The "parent page" is stored in a hidden field, so it's value can only come from pre-loaded data, or from editing an existing sub-page. So it's guaranteed to be static. However, I'm not sure how to "retrieve" it for use in #ask to get the other sub-pages.

I've thought of parsing the parameter to get the parent page, but it won't work since I'm using the one-step method, meaning the page name isn't filled on a preload. Is there any way to get the previous or preloaded value of the field, a-la ""? That way I could use ""


 * Hi, I have a similar problem. In my case i have a field in my form that is a dropdown type of field. I need to set the "values=" property with dynamic content, e.g:  {{{field|Clients|input type=dropdown|values={{#ask||?Name|mainlabel=-|format=list|link=none|headers=hide}}}} }}}  The inline query returns me the list of clients i have in my wiki in the following format: Client1, Client2,Client3 in accordance with the "values" property in my dropdown field.


 * The problem is when I put this query in the allowed values of the field, the query is not parsed, thus not showing the expected results.


 * Can someone tell me wich file i have to edit in Semantic Forms extension to enable the parsing of inline queries inside the form field declaration??? This correction/features is expected on new releases? Thanks everyone! Carlos Sa 14:58, 20 May 2011 (UTC)


 * First person - I can't think of any way to do that. Carlos - your problem actually sounds totally unrelated; but I would recommend creating a "concept" that matches that query, and then using "values from concept". Yaron Koren 21:20, 22 May 2011 (UTC)

Removing form edit
Hi there, if I have a category on a page containing a form edit property, is there a property i can add on the page to remove form edit?--Technobliterator 12:08, 22 May 2011 (UTC)


 * No - you might be better off using "Page has default form" instead of "Has default form". Yaron Koren 21:21, 22 May 2011 (UTC)