Get the right pid in FlexFormValue provider when creating a new entry