Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted September 13, 20222 yr Support for a prefix was added in the template \applications\core\dev\html\global\forms\number.phtml but the code to display the prefix is checking the wrong variable on line 5: {{if \is_string( $suffix )}} {$prefix|raw} {{endif}} The IF should check $prefix rather than $suffix: {{if \is_string( $prefix )}} {$prefix|raw} {{endif}}
November 17, 20222 yr Author Looks like this was "fixed" in 4.7.4 by completely removing the code instead of changing the variable check. 🙄 As it is now, there is no way to display a prefix for Number fields in a form. Edited November 17, 20222 yr by teraßyte
November 17, 20222 yr Solution To be fair, none of the form element templates shows the prefix, it's always shown as part of the row template, which wraps the form element, so the proper fix here was to remove it from the number template.