diff --git a/wagtailstreamforms/blocks.py b/wagtailstreamforms/blocks.py index 841107e2..21a541d2 100644 --- a/wagtailstreamforms/blocks.py +++ b/wagtailstreamforms/blocks.py @@ -8,12 +8,8 @@ class InfoBlock(blocks.CharBlock): - def render_form(self, value, prefix="", errors=None): - field = self.field - shown_value = value if value else field.help_text - return mark_safe( - '
%s
' % shown_value - ) + def render_form(self, value, **kwargs): + return super().render_form(value if value else self.field.help_text, **kwargs) class FormChooserBlock(blocks.ChooserBlock):