Default the Job Family on the basis of Job Function
Summary:
We would like to default the Job Family on the basis of Job Function in Recruitment structure for Create Job requisition Action. We have our Job Function designed in such a manner that the Job Family is concatenated after - , for Example, Accountancy / Transaction P - Accountant. Here Accountancy / Transaction P is Job Function and Accountant is Job Family.
I would need help on logic part how to break the Accountancy / Transaction P - Accountant into two parts so as to obtain Job Family from Job Function . Hyphen can be placed at any location hence end index might not work.