Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solve] picklist - mandatory
#1
How a field type picklist work when is set for mandatory?

In fact, for me, appears, nothing happen
Ranieri
eCRM Web
Reply
#2
There are two ways of making a picklist mandatory.

One is to add an empty string in the list: https://discussions.corebos.org/thread-617.html
The other is using business map validations: http://corebos.org/documentation/doku.php?id=en:adminmanual:businessmappings:validations
Look at the cbCalendar activitytype example
Joe
TSolucio
Reply
#3
I think the alternative, add a blank value in list is the way vTiger solved this problem.

This option can be included, in future, when user, at layout editor, choose mandatory on picklist ( enhanced feature )

I can do a mask in field with a business map too? and check if number is correct ( DG ) ?

How I can created a custom function? there any documentation or example?
Ranieri
eCRM Web
Reply
#4
There are a lot of supported validation types. Among those there is a REGEX validation which you could probably use to validate the mask you need. If you cannot do it with a REGEX, look at the last map on the documentation page, that one has an example of how to add a custom function.
Joe
TSolucio
Reply
#5
(09-19-2017, 08:18 PM)joebordes Wrote: There are two ways of making a picklist mandatory.

One is to add an empty string in the list: https://discussions.corebos.org/thread-617.html
The other is using business map validations: http://corebos.org/documentation/doku.php?id=en:adminmanual:businessmappings:validations
Look at the cbCalendar activitytype example


I try eliminate a value --None--  for leadsource in leads module, 
but not working.

What I do wrong?

<map>

  <originmodule>
    <originname>leads</originname>
  </originmodule>
  <fields>
    <field>
      <fieldname>leadsource</fieldname>
      <validations>
        <validation>
          <rule>notIn</rule>
          <restrictions>
          <restriction>--Nada--</restriction>
          </restrictions>
        </validation>
      </validations>
    </field>
</map>

I test in demo on line
Ranieri
eCRM Web
Reply
#6
discusion: https://discussions.corebos.org/showthread.php?tid=892
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)