helper to sequence the setfieldvalue and addfieldvalue