Check Taxonomy Fields

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
amitschke
Posts: 1
Joined: Tue Jan 24, 2017

24 Jan 2017

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;
});

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

25 Jan 2017

Hi,

Please, read the thread:
viewtopic.php?f=1&t=615

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests