CoreBOSBB
[solve] Business Map - Leadsource in Opportunities - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8)
+--- Thread: [solve] Business Map - Leadsource in Opportunities (/showthread.php?tid=902)



[solve] Business Map - Leadsource in Opportunities - rslemer - 02-19-2018

I tried create a new business map in Opportunities module, for check a valid leadsource, but not working.

What I did  wrong?

I tested in online demo, too.

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


RE: Business Map - Leadsource in Opportunities - joebordes - 02-19-2018

You have 3 dashes in front of the value:

---None--
--None--

try that change and let us know


RE: Business Map - Leadsource in Opportunities - rslemer - 02-20-2018

You're right, thanks Joe!

And how I input more than one value to exclude?


RE: Business Map - Leadsource in Opportunities - joebordes - 02-20-2018

the example on the documentation page (cbCalendar) says you can just add more restriction directives:

http://corebos.org/documentation/doku.php?id=en:adminmanual:businessmappings:validations

<restrictions>
<restriction>--None--</restriction>
<restriction>Another exclusion value</restriction>
</restrictions>

let us know how it goes


RE: Business Map - Leadsource in Opportunities - rslemer - 02-20-2018

Ah ok, I can add more lines, one with each value.

Thanks!