cancel
Showing results for 
Search instead for 
Did you mean: 

Field Extension validation on Supplier Self-Registration

ginodw2014
Explorer
0 Kudos

Hi Expert,

We are trying to do script validation on a custom field on the Supplier Self-Registration. The system is giving an error on the following import statement.

Script import statement.

The error we get on the Registration Page when we run it.

Please assist

Kind Regards

Gianno

View Entire Topic
former_member227405
Participant
0 Kudos

Hi Gianno,

Ween you are writing script for particular document type(Like here Supplier Registration)

Use directly IBean as doc--works on Document label

Sample script:

RequiredExtensionField= doc.getExtensionField("XXXXX").get();---XXX should be Extension definition  field Name

if(---Vlidate statement----)

{

//Your required logic

}

Thanks

Sonu

ginodw2014
Explorer
0 Kudos

Hi Sonu,

Thanks for your response,

I'm still have some issue with my script. Attached is the script I wrote and it does the validation, but after I Approved the Supplier and clicking on Save and then Done the system does not want to exit the Supplier record I have to cancel to exit the record.

Please assist.

Regards

Gianno

former_member227405
Participant
0 Kudos

Hi Gianno,

I think you have to put break(); after exist=1;

Just try once.

Br

Sonu