If you mean both were non-Catholic then lack of form doesn’t come into play. Only Catholics are bound to marry according to canonical form.
I gathered from your original post that
a) You have a Catholic friend who received an annulment of her first marriage.
b) She’s dating a divorced Catholic.
c) His first marriage was to a non-Catholic and celebrated by a JP.
We can’t really comment because there is information we don’t have. Did he have his Bishop’s permission to marry a non-Catholic, and if he did, did he also have a dispensation from the Bishop to marry outside the Church?
If he didn’t have a dispensation, his first marriage is not presumed valid. He is free to marry. He just had to present paperwork to show that.
If he did have a dispensation then his marriage is presumed valid and he has to have it investigated and possibly declared null.
Only once you know all this do you know whether or not she can marry him. Whether or not she should marry him is not for us to say.