Categories
Free
Supported Versions
Frappe Better Select Control

Frappe Better Select Control

A small plugin for Frappe that adds the support of options group to the select control.

Install Now
49 installs

A small plugin for Frappe that adds the support of options group to the select control.


Usage

  1. Go to Customization > Customize Form
  2. Enter the form type/name (ex: 'Item')
  3. Scroll down to the form fields area and edit the select fields you want
  4. In the options property of the fields, add a hashtag # before the option text to make it a group label
  5. To close a group just add a single hashtag # in a new line

Examples

Create an options group

  • Options:
One
Two
#Three
Four
Five
  • Result HTML:
<option value="One">One</option>
<option value="Two">Two</option>
<optgroup label="Three">
    <option value="Four">Four</option>
    <option value="Five">Five</option>
</optgroup>

Create multiple options groups

  • Options:
#One
Two
Three
#Four
Five
Six
  • Result HTML:
<optgroup label="One">
    <option value="Two">Two</option>
    <option value="Three">Three</option>
</optgroup>
<optgroup label="Four">
    <option value="Five">Five</option>
    <option value="Six">Six</option>
</optgroup>

Add options after an options group

  • Options:
One
Two
#Three
Four
Five
#
Six
  • Result HTML:
<option value="One">One</option>
<option value="Two">Two</option>
<optgroup label="Three">
    <option value="Four">Four</option>
    <option value="Five">Five</option>
</optgroup>
<option value="Six">Six</option>

License

MIT

User Reviews

Write a review

No reviews yet, be the first to review.