Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ solved - changed ] field subject
#1
In many modules, exists one field to user insert the subject ( for example, tickets, tasks, projects, task of projects, etc .. )

My user wish change this, used a picklist with defined values, instead a free text.

I created a new custom field, with a picklist and a new workflow to move the value of picklist to this subject field.

Problem is, field is mandatory and studio editor not allowed change this ..

User needs put something in subject before save registry ( is not good ideia ).

Exists  any way, I changed subject field to not mandatory?


Attached Files Thumbnail(s)
               
Ranieri
eCRM Web
Reply
#2
Go directly to the database, change the typeofdata column from V~M to V~O

Another idea, which is what I would have done, is to convert the field to a picklist:

https://github.com/tsolucio/corebos/blob...cklist.php
Joe
TSolucio
Reply
#3
I copy this file from original location to root directory, but how I inform a field name and module name parameters?

I try ../convertTextFieldToPicklist.php projecttaskname projecttask

http:/.../convertTextFieldToPicklist.php?fieldname=projecttaskname?module=ProjectTask

Show me --> The fieldname and module parameters couldn't be empty
Ranieri
eCRM Web
Reply
#4
from the browser:


Code:
http:/.../convertTextFieldToPicklist.php?fieldname=projecttaskname&module=ProjectTask



note that the first parameter is separated with a question mark while all others are with an ampersand
Joe
TSolucio
Reply
#5
Shows --> The field projecttaskname should be uitype 1.

or

/convertTextFieldToPicklist.php?fieldname=title&module=HelpDesk

Failed to find title field.

All fields shows type 255 ....
Ranieri
eCRM Web
Reply
#6
set them to uitype 1, it doesn't matter they are going to end up with 15 anyway
Joe
TSolucio
Reply
#7
I changed code for :

echo "<b>The field $fieldname should be uitype 1 ( uitype = $uitype ).</b><br>";

System shows uitype = 2 ( ?? ) strange not?

And I forced code change code 2 and worked !!

Thanks!!
Ranieri
eCRM Web
Reply
#8
For tickets, correct is :

/convertTextFieldToPicklist.php?fieldname=ticket_title&module=HelpDesk
Ranieri
eCRM Web
Reply
#9
I changed subject in cbCalendar too ...

But system created many tasks, like a event, call from ipbx, and other ..

Is possible reverted ?
Ranieri
eCRM Web
Reply
#10
Set the uitype back to 1 (or whatever it was)
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)