Improve javascript for context common fields, now none support input can implement their own process