Changing a Label dynamically Answered

Chris Hinchcliffe

I am new to this so would like a little help if possible. I am trying to add a second Buyer/sales employee to the BP master data. I have created a UDF and placed it on the main form. Is it possible to display the UDF with a Buyer 2 label if BP type supplier is selected or Sales Employee 2 if Customer is selected  Many Thanks

Comments

1 comment

  • Comment author
    Thomas
    • Official comment

    Hi,

    Technically that could be possible. You need to use a validation that checks the customer/supplier field status on Data Load event with BeforeAction = False. Then have macro that sets a value to the sales employee 2 label based on the validation.

    Note that Data Load + BeforeAction = False does not always work with all document types.

    My best advice here is to name the field label with something generic that goes for both Sales Employee 2 and Buyer 2. Maybe Contact 2? :-)

    Best regards,

Please sign in to leave a comment.