Last modified: 2014-01-01 15:44:29 UTC
Semantic Forms fields can be constructed conditionally when using templates, parser functions, etc. But, they usually fail when in a table, unless preceded by a new line. It does not help to change the table cell's pipe syntax to a pipe template. Only the new line seems to workaround the problem. I took the day to prepare a demo, which I will post after I rename it to the bug number that this report receives.
Created attachment 9523 [details] Semantic Form code Login with Demo/test: http://www.coincompendium.com/wiki/index.php/Form:Bug_32581
Are you sure that this is a Semantic Forms issue, as opposed to a MediaWiki parser issue? (To the extent that it's an issue at all?)
I haven't had this exact same problem with the interaction in a table with anything but Semantic Forms. Can you suggest a way to test for the cause? Parser functions and other templates seem to work OK every time I've used them for anything but Semantic Forms, in this kind demo. I did run into a similar issue with Semantic Maps that I reported a few months ago: https://bugzilla.wikimedia.org/show_bug.cgi?id=30354 but it doesn't involve tables as far as I can tell, and I wasn't able to figure out the cause for it. Since the sloppy demo I set up on the site has changed since then, I'd have to go back to set up a new, better demo for it, and maybe see if I can isolate the trigger for it. In both cases, I haven't been able to duplicate the issue outside of SMW. I don't know how Semantic Forms and Semantic Maps work under the hood, so that limits me in the effectiveness of my testing with the time I have available for it. If you have any tips or suggestions that can help me do a better job of testing, quicker, I would appreciate it. I'm sure at some point, getting familiar with SMW's code would be helpful, but I think it's out of my league until I get some experience writing and debugging extensions, along with dedicated time to focus on studying SMW.
Marking as "invalid" - this appears to be a parser issue, not an SF issue.