Jump to content

User:Mourawi

From mediawiki.org


Fields with 'values from category' display html markups

[edit]

Upgraded from PageForms 4.2.1 to 4.6 and experienced strange behavior with fields which are using 'values from category='. (on MediaWiki: 1.30 and SemanticMediaWiki: 2.5.6)

Eg. {{{field|businessArea|input type=textarea with autocomplete|values from category=Business Areas|remote autocompletion}}}

All such input fields in the form display expected value but wrapped with html markups: <span style="display:none">VALUE</span>. Also autocomplete works when you start typing '<span' ...

The following workaround works fine(no html markup is generated around values displayed in input field):

{{{field|businessArea|input type=textarea with autocomplete|values={{#ask:[[Category:Business Areas]]|link=none|mainlabel=|sep=,}}|remote autocompletion}}} ... but of course is not a desired solution.

How to fix this behavior? --Mourawi (talk) 13:17, 4 November 2019 (UTC)