Fancy js for normalizing forms on rule creation