Check Taxonomy Fields

rss

Posted by amitschke - Jan 24 ’17 at 05:24

Hello,

I use SPForm Designer V 3.1.1. I want to check some fields in my form, if they are filled out.

I can check PeoplePicker und Datepicker Fiedls, but I don't know how to proof the Taxonomy Fields.

QM_Dokumentenart is my Taxonomy Field.

 

Here is my Code:

fd.onsubmit(function(){
var ooo = fd.field('QM_x002d_Dokumentenart').value();
var ooo2 = fd.field('QM_x002d_Dokumentenart').control('getSelectedText');
//var ooo3 = fd.field('QM_x002d_Dokumentenart').get_item('QM_x002d_Dokumentenart');
//var ooo4 = fd.field('QM_x002d_Dokumentenart').get_item('Tags');
var ooo5 = fd.field('QM_x002d_Dokumentenart').control();
var ooo6 = fd.field('QM_x002d_Dokumentenart').control()._el();
var ooo7 = fd.field('QM_x002d_Dokumentenart').control()._el().length;

if (
((typeof QMErstellerArray !== 'undefined') && QMErstellerArray.length > 0) // People Picker
&&
(fd.field('Revisionsdatum').value() !== null) // DateTime
&& 
(typeof fd.field('QM_x002d_Dokumentenart').value() !== 'undefined') // Single Lookup Value
)
{

return true;
}

alert('Error'); return false;
});

 

 

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 21 days
    #1 by Dmitry Kozlov Jan 25 ’17 at 06:01

    Hi,

    Please, read the thread:

    http://forum.spform.com/forms-designer-for-sharepoint-20/managed-metadata-22152/

Displaying 1 to 1 of 1 messages