Menu

SuietASSURED Banner

Welcome, Guest
Username: Password: Remember me

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

how to make "assigned to" a required field. 1 week 15 hours ago #59877

  • John - EZS
  • John - EZS's Avatar
  • Offline
  • Elite Member
  • Posts: 264
  • Thank you received: 21
  • Karma: 5
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. 1 week 14 hours ago #59885

  • razgrizgt
  • razgrizgt's Avatar
  • Offline
  • New Member
  • Posts: 1
  • 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. 6 days 16 hours ago #59912

  • John - EZS
  • John - EZS's Avatar
  • Offline
  • Elite Member
  • Posts: 264
  • Thank you received: 21
  • Karma: 5
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 days 13 hours ago #59984

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 4109
  • Thank you received: 665
  • Karma: 162
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. 4 days 12 hours ago #60020

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