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. 8 months 1 day ago #59877

  • John - EZS
  • John - EZS's Avatar
  • Offline
  • SuiteCRM Is My Life
  • Posts: 327
  • Thank you received: 30
  • 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. 8 months 1 day 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. 8 months 18 hours ago #59912

  • John - EZS
  • John - EZS's Avatar
  • Offline
  • SuiteCRM Is My Life
  • Posts: 327
  • Thank you received: 30
  • 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. 7 months 4 weeks ago #59984

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 7776
  • Thank you received: 1208
  • Karma: 281
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?

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.
The following user(s) said Thank You: John - EZS

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

  • John - EZS
  • John - EZS's Avatar
  • Offline
  • SuiteCRM Is My Life
  • Posts: 327
  • Thank you received: 30
  • 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: 7 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.049 seconds
Powered by Kunena Forum