Extension talk:Page Forms

#if problem
I'm trying to use the #if variable but when I put this code

It will show/hide the title but not the content?

--Redeye 22:48, 1 January 2011 (UTC)


 * I don't understand the question, but this doesn't sound like a Semantic Forms issue. Yaron Koren 19:36, 2 January 2011 (UTC)

Populating red-linked namespace pages automatically
Is there a way to use the "Creates pages with form", for populating red-linked pages automatically, based on namespace links?--174.50.85.207 14:14, 2 January 2011 (UTC)


 * No - it has to be via a property. Yaron Koren 19:36, 2 January 2011 (UTC)

#Info and Forms - SF 2.0.7
Mike here. Hi again and first of all: Happy new Year to you all.

I'm slowly but steadily getting mad about this {{#info display issue within my forms. Here's the short description again:


 * Using | {{#info: Some explanation }} within my forms results in the text "some explanation" getting rendered when editing with form. No "(?)" bubble icon appears in the form as required, which is completely messing up my table layout.
 * Display of #info bubbles in normal template output is ok.
 * Switching back to SF 2.0.4 resolves the display issue, but ...
 * ...then FCK Editor seems to mess up my saved page output when the #info tags get interpreted correctly ("preload"-text overwrites my content after saving)
 * disabling FCK Editor (Version 1.0.1) in my LocalSettings has no effect on the info-tags rendering.

I tried to reproduce the problem on http://scratchpad.referata.com but the form (User) i created there works well. OK, so I compared the Special:Version page there with my Wiki's Semantic-Addons versions and they seem identical. The only difference i can spot is "SMW 1.5.4 RC1" over there and "1.5.4" in my Wiki but i got the recent official version on the SMW download page. I also tried to delete and rewrite the extensions in my wiki folder with the "semantic-bundle" versions of SMW and SF - but it had no effect at all.

Do i need to delete / purge something else to make sure i use the up-to-date versions of my extensions?

I'm at the point of completely giving up {{#info tags within my forms. Is there any other other solution to get a user help into my forms? Maybe something like this? (Mike)


 * I have no idea. If you send me the HTML source of the form where the problem occurs, I might be able to help. Yaron Koren 15:36, 3 January 2011 (UTC)


 * We encountered similar problems with the #info (display help information for users on fields). Sometimes (and it was not clear in which cases) the text would be rendered within the form field itself and would make editing and adventure, it seemed that when the server was to slow to render or work through the javascript the balloon is not rendered as supposed to be but as I said it is not really clear when this problem appears. Except within the forms (we are using Semantic Forms (Version 2.0.7)	(r79039)), #info works just fine. You might have a look at ....referata.com, Form Reference, Field Reference which does not show the icon but shows the whole information.--MWJames 22:31, 3 January 2011 (UTC)


 * Thank you! Finally someone with the same problem. I just made some tests to check which Version of SF shows me the problem:
 * SF 2.0.7 - BAD
 * SF 2.0.6 - BAD
 * SF 2.0.4 - NO problems!
 * The weird thing is that either FCK Editor or the "Data repair and upgrade" functionality seem to add to the equation somehow. FCK acts normally within my forms as i write this but i could swear it will start acting up again as soon as it finds #info tags or the Data Repair gets involved somehow. I think i experienced a change in functionality after the repair has been started.
 * @Yaron: I'll E-Mail the Form Wikitext as well as the rendered HTML Output to you. Happens in all my forms involving #info though.
 * @MWJames: Do you happen to use FCK Editor within your Semantic Forms? If yes, which version do you use? (Mike)

How do I edit Special:UploadWindow page?
Mine Special:UploadWindow and http://discoursedb.org/wiki/Special:UploadWindow have different looking upload pages, how do I edit my upload page so it looks the same, my page doesn't have File description and Upload options boxes.

FYI I don't see Upload window link under Other special pages


 * What versions of MW and SF are you using? Yaron Koren 13:43, 5 January 2011 (UTC)


 * MW Ver. 1.15.3 and SF Ver. 2.0.7


 * I think it's a MediaWiki version issue - if you upgrade to MW 1.16, you should see more stuff there on the page. Yaron Koren 15:09, 6 January 2011 (UTC)

Why is the first # is not converted into number? Bug?
It seems that this site have the same problem http://discoursedb.org/wiki/12


 * See here. Yaron Koren 15:10, 6 January 2011 (UTC)

Using forms to create partially 'transcludable' templates
Like most of us here, I may be learning things the hard way. I've created a special Form to create and edit templates. This Form was initially based on three separate templates, one of which was meant to produce formatted text without being transcluded when the output template (for lack of a better term) is used on pages. In other words, the template produced by this form was meant to be (1) read as such (by going to Template:…, etc.) and (2) only in part transcluded when used on some page elsewhere. Is this at all possible? I wasn't able to find anything helpful in the archived discussions and the only solution I could come up with was to remove the template from the Form and to manually insert it in the output template between and. Cavila 19:53, 6 January 2011 (UTC)
 * P.S. I merged the other two working templates as I could not get rid of a space in the output template (and for reasons unknown to me, some fields got automatically transferred to the wrong template after a few edits to the output template, but that’s a different story). Cavila 19:53, 6 January 2011 (UTC)

Follow-up

 * It’s not a perfect solution, but the template which is not-for-transclusion may be added to the free-text field and placed between noinclude tags. Similarly, categories which are not-for-transclusion may be added here.
 * However, I also noticed that using the form adds an enter command between the template and the free text. That's fine when creating pages in the main namespace, not when using custom-made forms to create templates, because every instance of such a template which is transcluded onto a different page will also be followed by an enter key. (I can get rid of it by hand, however cumbersome, but every time the form is used to edit the template, it's back again.) Cavila 11:32, 7 January 2011 (UTC)

Follow-up 2

 * No response? Oh well, I'm looking into other options. If forms cannot fully control the behaviours of templates with regard to transclusion, then maybe I should start considering the inline queries from SMW to get more streamlined results. In fact, inline queries appear to have a number of considerable advantages over transclusion by template. Regards, Cavila 17:12, 7 January 2011 (UTC)


 * I'm still not entirely sure what you're trying to do, but it does sound like Semantic Forms isn't the right tool for the task. Yaron Koren 19:30, 7 January 2011 (UTC)


 * Thanks for your reply. Admittedly, my summary may have been a little sketchy and it probably does not help much either that I've been variously referring to two different kinds of templates (first, a set of templates for which a form is created and then the template which is created through the form, here called output template, but you did understand that part, right?). In a nutshell, I tried to have annotations in my 'output template' and here only, that is, not in the page which uses the . I couldn’t find a way to specify this in the form, except manually by putting relevant information in a free text area. Otherwise, the forms are fine and I'm happy to continue using them. Kudos for the all the hard work you've done and the support you have regularly offered to people like myself! It's the way of reproducing content elsewhere, or selected elements thereof, that can probably be done in a more systematic, flexible and versatile way through a combination of SMW functions than through simple transclusion as done with (output) templates. Cavila 20:36, 7 January 2011 (UTC)

Multiple inputs
Hello, Is the listbox the only option for having multiple values entered in a form where a property has a list of allowed values? Thanks, Aj2479--208.127.139.94 21:42, 6 January 2011 (UTC)


 * No - you can do either listbox or checkboxes. Yaron Koren 22:09, 6 January 2011 (UTC)
 * AH! Thanks! Checkboxes with an -ex.

--208.127.139.94 00:45, 7 January 2011 (UTC)

How do I add Page tab to the form?
I have a page that can be edited trough two different forms. One of the forms is set as Page has default form::form-name the second form is being linked through the url in the template. The Form that is being linked through the url in the template points to the Form that don't have Page, Discussion, Edith with form, Edit, History tabs, instead it have Special page tab. Is there a way i can add at least a Page tab to that form?


 * No. Yaron Koren 14:23, 7 January 2011 (UTC)

Is there a way to hide text fields?
I have a form created in the SF, that have four text fields, I want the last two text fields in the form to be hidden unless the user enables those fields by ticking a check box or by clicking add that text field or what ever options of enabling those text boxes is available. Is it possible in SF and how?


 * Yes - see "show on select". Yaron Koren 14:24, 7 January 2011 (UTC)


 * When I check both boxes and add text to the both text fields, after saving it when I go back to edit the form one of the check boxes is un-checks, what could be the problem? When I check it back I see the content that was put into it before.

Check box named Black is checked and check box for the white one gets un-checked.

Black, White or Both? Black White