Posts: 1,665
Threads: 644
Joined: Aug 2016
Reputation:
164
07-04-2018, 06:40 PM
(This post was last modified: 07-30-2018, 11:19 AM by rslemer.)
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?
Ranieri
eCRM Web
Posts: 1,665
Threads: 644
Joined: Aug 2016
Reputation:
164
07-04-2018, 11:40 PM
(This post was last modified: 07-05-2018, 01:34 AM by rslemer.)
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
Posts: 1,665
Threads: 644
Joined: Aug 2016
Reputation:
164
07-05-2018, 03:44 PM
(This post was last modified: 07-05-2018, 03:49 PM by rslemer.)
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
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
set them to uitype 1, it doesn't matter they are going to end up with 15 anyway
Joe
TSolucio
Posts: 1,665
Threads: 644
Joined: Aug 2016
Reputation:
164
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
Posts: 1,665
Threads: 644
Joined: Aug 2016
Reputation:
164
For tickets, correct is :
/convertTextFieldToPicklist.php?fieldname=ticket_title&module=HelpDesk
Ranieri
eCRM Web
Posts: 1,665
Threads: 644
Joined: Aug 2016
Reputation:
164
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
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
Set the uitype back to 1 (or whatever it was)
Joe
TSolucio