Menu

SuiteCRM Master Classes 2018

Welcome, Guest
Username: Password: Remember me

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

how to make "assigned to" a required field. 3 months 1 week ago #59877

  • John - EZS
  • John - EZS's Avatar
  • Offline
  • Elite Member
  • Posts: 294
  • Thank you received: 27
  • 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. 3 months 1 week ago #59885

  • razgrizgt
  • razgrizgt's Avatar
  • Offline
  • Junior Member
  • Posts: 27
  • 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. 3 months 6 days ago #59912

  • John - EZS
  • John - EZS's Avatar
  • Offline
  • Elite Member
  • Posts: 294
  • Thank you received: 27
  • 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. 3 months 5 days ago #59984

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 5865
  • Thank you received: 908
  • Karma: 216
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. 3 months 4 days ago #60020

  • John - EZS
  • John - EZS's Avatar
  • Offline
  • Elite Member
  • Posts: 294
  • Thank you received: 27
  • 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: 3 months 4 days ago by John - EZS.
The administrator has disabled public write access.
The following user(s) said Thank You: pgr
Time to create page: 0.052 seconds
Powered by Kunena Forum