@josephivann,
You can check this link, it is for a different requirement but still has the similar solution.