Better Select Control

Better Select Control

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

Install Now
136 installs

A small plugin for Frappe that adds the support of option groups to the select control.


Usage

  1. Go to Customization > Customize Form
  2. Enter the form type/name (ex: 'User')
  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
  6. Add an exclamation mark ! before a hashtag # at the beginning of the option text to stop it from being used as a group label

⚠️ Important ⚠️

You can't modify the original fields of a doctype, so create a new field or clone and modify the entire doctype.


Examples

Single Option Group

  • Options:```OneTwo

Three

FourFive- Result HTML:

```

Multiple Option Groups

  • Options:```

One

TwoThree

Four

FiveSix- Result HTML: ```

Normal Options After Option Group

  • Options:

```OneTwo

Three

FourFive

Six- Result HTML:

```

Empty Option Group Label

  • Options:

```OneTwo

ThreeFourFive

Six- Result HTML:

```

Placeholder Option

  • Options:

```$Select..OneTwo

Three

FourFive

Six- Result HTML:

```

User Reviews

Write a review

3.0

1 rating

3.0 out of 5

5 Star

0%

4 Star

0%

3 Star

100%

2 Star

0%

1 Star

0%

Propose

Please Add some image for better understanding

1team digital • 2 months ago • Reply