Community

FC-12 Invoice Project- Script for enable disable field for particular based on vendor id

Hi Team,

Can someone suggest some script anything to enable or disable Custom fields for specific vendors based on Ids.

1- Disable from verification

2- Disable from export

Either can be enabled or disabled under flexilayout level or FC DD level if possible.

Thanks!

Was this article helpful?

0 out of 0 found this helpful

Comments

5 comments

  • Avatar
    Rahul Kapoor

    Hi, You can create a Script Rule to hide any field.

    if(any condition)
    {
    Context.Field("Total").IsVisible = false;
    }


    -
    Thanks,
    Rahul Kapoor
    linkedin.com/in/rahulkapoor309/

    1
  • Avatar
    Rahul Kapoor

    For export, you can write multiple exports in one document definition. So based on Vendor, you can select which export should work.

    0
  • Avatar
    Ranjit Nayak

    Hi Rahul,

    Confused last part for export, any steps for syntax would you share please.

    Also can I apply script for multiple fields under a group , any syntax would you suggest please.

    0
  • Avatar
    Ranjit Nayak

    Hi All,

    Any script for copying server training batch to local in FC12 invoice project.

     

    TIA.

    0
  • Avatar
    Ranjit Nayak

    As I noticed, .isVisible in script is giving error(system.runtime.interopservces.comexeption): Unable to modify a ready only field.

    I need to hide this field for recognize from other vendor, any other script suggestion would be helpful as this is not working.

    Any suggest how to use .NeedRecognize method

    0

Please sign in to leave a comment.