Form Handler
If you receive a message with a form attached, this plugin shows a button in the chat that lets you open the form and submit it
Example:
<message type="chat" id="72b2fe5f" to="max@mann.de" from="mara@frau.de">
<body>Please fill out this form</body>
<x xmlns='jabber:x:data' type='form'>
<title>Feedback Form</title>
<instructions>Please give us feedback</instructions>
<field type='hidden' var='FORM_TYPE'>
<value>feedback</value>
</field>
<field type='fixed'><value>Section 1:</value></field>
<field type='text-multi' label='Comment' var='description'/>
<field type='hidden' var='submit-button-text'>
<value>Submit</value>
</field>
<field type='hidden' var='open-button-text'>
<value>Vote!</value>
</field>
</x>
</message>
Configuration
You can customize the buttons with following hidden fields
-
submit-button-text
The text that is used as label for the submit button -
open-button-text
: The text that is used as label for the open button