choose a Dropdown value one at time

Hi there,

I have custom module “Batch” and a drop-down “Time” it’s values “6am”,“7am”,“8am”,“9am”


If I create a batch with drop-down value “6 am”.
second time if I create a batch with same drop-down value “6 am” .

it should show error"Batch is running at this time. please choose different time"

Please help here…


For these sorts of validations you need to inject javascript into the Edit view of your custom module, then that javascript can hook the change events on the Dropdown and run your logic.

Search Google for examples of injecting Javascript on SugarCRM 6.5 or SuiteCRM views.

1 Like