Menu
SuiteCRM Pull Request Party hosted by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: Dropdown list blank value

Dropdown list blank value 1 week 1 day ago #79104

  • giovanni1
  • giovanni1's Avatar
  • Offline
  • New Member
  • Posts: 8
  • Karma: 0
Hi all,

I added a blank value to a dropdown list and made it the default value.
That field is mandatory.

The problem is that the if I don't choose another value, the crm sees the blank one as correct, bypassing the mandatory requirement.

At the same time, fields with a default blank value (not added) make you choose a value (like Country).

How can I solve this?
The administrator has disabled public write access.

Dropdown list blank value 1 week 1 day ago #79111

  • AlxGr
  • AlxGr's Avatar
  • Offline
  • Premium Member
  • Posts: 106
  • Thank you received: 12
  • Karma: 1
You can add some JavaScript validation to your field:

https://suitecrm.com/suitecrm/forum/developer-help/4127-validate-textbox-using-js

https://gunnicom.wordpress.com/2015/09/21/suitecrm-sugarcrm-6-5-add-custom-javascript-field-validation/

Another way (more complicated and might not be practical) is to create a hook to avoid saving when field is empty.
The administrator has disabled public write access.
Time to create page: 0.096 seconds
Powered by Kunena Forum