cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to make Event Terms field mandatory

Former Member
0 Likes
224

Hi,

I want to make event terms in RFx a mandatory field during the time of creation of RFP. I tried using the page customization method but it does not seem to be working.

Could you please guide me.

Kind Regards,

Anshuman

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Hi Anshuman,

You can try by using scripts.

SubordinateCollectionIfc eventTerms= doc.getEventTerms();

        if(eventTerms.size()==0)

        {

            //throw error that this is mandatory collection

        }

        for(int i=0;i<eventTerms.size();i++)

        {

            TermsIBeanIfc eventTerm=(TermsIBeanIfc)eventTerms.get(i);

            LocalizedBigText eventTermText=eventTerm.getFieldMetadata("TERMS").get(eventTerm);

            if(!eventTermText.isSet())

            {

                //throw error that this is mandatory field

            }

        }   

I hope this would solve the issue of making EVENT_TERMS mandatory.

Regards,

Kumud