The net selection and back propagation (
form->filed->value = netName ) actually should be
handled by your “getNetName” callback.
You can prompt for a selection there, maybe make use of an
enter function (enterPoint).
I don’t have a complete solution, just want to point you how
to get the net name.
Just posting the form code anyhow does not help the
community here, because the
main functionality related to your question should be
included in the callback function.