freeinput and objectvalue can be used together with a new event type 'beforeFreeInputItemAdd'. there is a sample in README.md diff
Update README.md

js sample highlight