default parent_reference_id to valid value
include validation for parent reference id
use the reference from the correct action
tweak ui
add test for custom parent ref
Merge pull request #4984 from dimagi/advanced-parent

fix parent refs in advanced module