CoreBOSBB

Full Version: [solve] Business Map - Leadsource in Opportunities
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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>
You have 3 dashes in front of the value:

---None--
--None--

try that change and let us know
You're right, thanks Joe!

And how I input more than one value to exclude?
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
Ah ok, I can add more lines, one with each value.

Thanks!