Search Engine: Elastic

Article ID: 120891, created on Apr 4, 2014, last review on Jul 14, 2018

  • Applies to:
  • Business Automation 5.5
  • Business Automation 5.4


How can some field in PBA control panel be marked as required? For example, your staff members create accounts using provider's control panel and it is important to have a tax zone or sales branch filled.


It can be done via customization of PBA interface:

  1. Locate the screen you need to customize, prepare a container. The steps are described in the documentation:

  2. Create a customization file for the screen, find <elements> part of the file, find a necessary element (details are in the documentation by link above, "Creating customization file" part)
  3. Add required="yes" attribute for needed element
  4. Make sure that you have removed all elements and their attributes that are not used in customization
  5. Restart www container to apply changes:

    /etc/init.d/www restart

Note, it is possible to make an optional field obligatory, but it is not possible vise versa. If a fields is marked as obligatory in the default, not customized PBA, that means that the method executed on the button click expects the argument this field passes. If an argument is not passed, the method cannot be executed.



Make a Sales Branch required field when creating an account from the provider's control panel.


  1. Make sure the directory /usr/local/bm/conf/wnd/BM/customization/customization is a symlink to /usr/local/bm/customization:

    # ls -ld /usr/local/bm/conf/wnd/BM/customization/customization
    /usr/local/bm/conf/wnd/BM/customization/customization -> /usr/local/bm/customization

    If not, configure it:

    # cd /usr/local/bm/conf/wnd/BM/customization
    # ln -s /usr/local/bm/customization customization
  2. Copy Account_AddCustomerWin.xml from ~bm/customization
  3. Remove the actions and the layout sections. Leave only the window ID and elements section.
  4. Leave only required element which is BranchIDBranchID, add required="yes"
  5. Eventually you should get the customization file as following:

    <window id="Account_AddCustomerWin">
      <input id="BranchIDBranchID" required="yes"/>
  6. Restart www:

    /etc/init.d./www restart

As a result you will see an asterisk near required field:


198398b282069eaf2d94a6af87dcb3ff caea8340e2d186a540518d08602aa065 801221f8cd76fba7300d1e6817c8e08b 92711db0799e8aefe8e51f12dace0496 210d017ddc3a076d22f0f865b1cf0730 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF