Steffen
Well-known member
When giving a custom warning, it would be nice if the input field for the conversation title was pre-filled with the custom warning title.
This can be accomplished with a template change (please forgive me for using on* attributes ) but I think this would make sense as a (nicely coded ) default behaviour. At least if the conversation title input field is still empty.
This can be accomplished with a template change (please forgive me for using on* attributes ) but I think this would make sense as a (nicely coded ) default behaviour. At least if the conversation title input field is still empty.
HTML:
<xf:textbox name="custom_title" maxlength="{{ max_length($warning, 'title') }}" onchange="document.querySelector('input[name="conversation_title"]').value = this.value;" />
Upvote
1