Menu
SuiteCRM dedicated support by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: how to make "assigned to" a required field.

how to make "assigned to" a required field. 6 months 19 hours ago #59877

  • John - EZS
  • John - EZS's Avatar
  • Offline
  • Elite Member
  • Posts: 300
  • Thank you received: 28
  • Karma: 6
How can I make the "assigned to" field a required field, so it can't be empty?
The administrator has disabled public write access.

how to make "assigned to" a required field. 6 months 18 hours ago #59885

  • razgrizgt
  • razgrizgt's Avatar
  • Offline
  • Junior Member
  • Posts: 37
  • Thank you received: 2
  • Karma: 0
Maybe you can check the field using a logic hook and see if the field is empty? Will that work?
The administrator has disabled public write access.

how to make "assigned to" a required field. 5 months 4 weeks ago #59912

  • John - EZS
  • John - EZS's Avatar
  • Offline
  • Elite Member
  • Posts: 300
  • Thank you received: 28
  • Karma: 6
That would work as a last resort. But I'm looking for a functionality that works like all other required fields, i.e. user can't save unless field is not empty.
The administrator has disabled public write access.

how to make "assigned to" a required field. 5 months 4 weeks ago #59984

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 7033
  • Thank you received: 1075
  • Karma: 250
I don't really have time to check now, but isn't there something in the vardefs where you say a field has required=true or something?
The administrator has disabled public write access.
The following user(s) said Thank You: John - EZS

how to make "assigned to" a required field. 5 months 4 weeks ago #60020

  • John - EZS
  • John - EZS's Avatar
  • Offline
  • Elite Member
  • Posts: 300
  • Thank you received: 28
  • Karma: 6
pgr yes that's it. forgot about that. Thanks.

Added file to /custom/Extension/modules/[MODULENAME]/Ext/Vardefs/

with
<?php 

$dictionary['[MODULENAME]']['fields']['assigned_user_name']['required']=true;

?>

after quick rebuild it's now a required field.
Last Edit: 5 months 4 weeks ago by John - EZS.
The administrator has disabled public write access.
The following user(s) said Thank You: pgr
Time to create page: 0.096 seconds
Powered by Kunena Forum