Hello everyone, Is there a way to make certain seg...
# suitescript
g
Hello everyone, Is there a way to make certain segments mandatory when specific accounts are chosen on a transaction? For example - If I'm selecting a P&L account on a JE line, the Department and Class fields must be mandatory. However, when a BS account is chosen, those segments must not be mandatory. Any insights would be highly appreciated. Thanks!
t
I think you can try to create a config and then clientscript for setting up the mandatory fields
g
@Tyn Guardian - Thank you for your response. Do you mind elaborating, please?
t
create a clientscript for this. Example, once the page displayed and account is choses, set your clientscript to set the mandatory fields for you.
g
I see. Is there an existing script? I'm not from the Development side, so I am unfamiliar with the creation of scripts.
t
No, you have to create it given you have your specific requirement
g
Hmm. okay! Thanks.
goodluck 1