Set value before validate record in button click

issue3322
review1022002
(transplanted from 93fe795cf2b97437598e9155a77957c48e0a1ae0)

--HG--
extra : transplant_source : %93%FEy%5C%F2%B9t7Y%8E%91U%A7yW%C4%8E%0A%1A%E0