Open flylzj opened 11 months ago
@flylzj could the crx html block work for you? https://docs.coderedcorp.com/wagtail-crx/features/blocks/contentblocks/html.html
If not can you share what the template looks like? Instead of putting the html inside the form_data, might be better to store the href and do something like this in the template.
<button><a href="{{ add_account_url }}"></a></button>
where addaccount url is the /admin/users/add?info=xxx you are storing in form_data
I would recommend adding the account link/href as help text in the form. That can be rendered as html.
If you need a more advanced form, consider using Stream Forms, which allows for mixing form fields and other streamfield block content. https://docs.coderedcorp.com/wagtail-crx/features/page_types/stream_forms.html
Hey guys, I am writeing a feature and meting a problem. here is the situation below, user fill the userinfo form and admin can Review the form and jump to the add acount view. I don't know how and where to add the jump button. I have tried the code below, it only show the text not the html.
Please help me, thank you