Hello,
Can anyone give solution, i have set a particular field "not to be blank" in FCI 11, still i can goto next page. How to prevent this situation?. I dont want to move down to next document unless all required fields are filled.
Thanks, if any one can answer
Comments
15 comments
Hi Samir,
To keep the Mandatory fields, you can write the script in Project Properties>>Stage Tools>>Verificication>>Edit
Their you select the event "On Closing document".
I will provide you with a sample code. Try this
if(DocumentEditor.Document.Field("Invoice Layout\\InvoiceNumber").Text=="")
{
FCTools.ShowMessage("InvoiceNumber is Empty, Please Check");
CanClose.Value=false;
}
else
{
CanClose.Value=true;
}
Hi sunil,
There is no event such as "On Closing document", so which event handler i have to choose and edit script in it?
I am using FCI 11, Event handler option is in Project-> Project Properties->Event handlers.
Hi Samir,
It is located in the Project Properties Event Handlers. See screenshot attached.
Hi, It is not in project properties->Event handlers (ie before batch close) , rather it is in project properties->General->Tools->Edit Tool->Add Event->On closing Document.
But still the code above mentioned is not working even script is correct syntactically. What is missing in it?
Hi Samir,
Are you checking in Verification Station???
Hi Sunil, it is a standalone station with all features of proper FCI 11. Code is right but not getting fired. Does that code run in verification station or have any limits? are there any conventions for field name?
You have to write the script in the below location.
Project Properties>>Stage Tools>>Verificication>>Edit
It works in verification station.
Do you want to work this script any other rather than Verification station??
Hi Sunil, I have code written Project properties->Tools->Edit Tool->Add Event->On closing Document. But still not getting executed. Are there any conventions for 'FIELD NAME'? I have 'Invoice Layout/InvoiceNumber'. Is it ok?.or What could be wrong.
Script is correct, but the location you are writing the script is wrong. Write the script in the below location
Project Properties>>Stage Tools>>Verificication>>Edit
Are you able to see the above location??
Hi sunil, Project Properties>>Stage Tools was in FC10, Now in FCI 11, ' on closing document' is located in ,Project properties->Tools->Edit Tool->Add Event->On closing Document. We have to write script in that event handler only, isnt it?. So not getting , what things are going wrong
Ok, let me check at my side and i will let you know.
You are using FC11 standalone version right??
Yes, FCI 11, standalone version. Please check at your side, if you can.
Hello,
Please go to the Project Properties > General tab > “Edit Tools” button. Add “On Closing Document” event and place the script there. Note, that customization of this feature should be performed on the Administrator station, but you may see the result only on the Operator station.
Thanks Ekaterina, But do i need to follow any naming conventions for field name and i have selected Jscript and it says script is correct, but still not getting results. Please guide.
Hello,
You may see the result after closing document during the verification task.
Please sign in to leave a comment.