Insert Record - Remove spaces and replace with dashes and increment it not unique
I am working on a permalink solution, and in order to do so I plan to create unique strings based on another database field.
Ex:
DB Field | Value
careerId: 1
careerTitle: Senior Sales Associate
careerPermalink: senior-sales-associate
I would like when I insert the record for the DataAssist insert server behavior to take the same form field and insert it twice, the second time with any spaces removed and replaced by dashes to accomplish the above data.
Im using <?php echo strtolower(((isset($_POST["careerTitle"]))?$_POST["careerTitle"]:"")) ?> to make it all lowercase, but do not know how to replace spaces with dashes or handle the increment.
Is there a way to easily accomplish this with DataAssist / DataBridge?