Hello Friend! I faced the same problem, but I solved it
creating a variable of type Object:
$ clientField = UserForm :: getUserForm () -> getFields ();
Then I retrieve the data variable like this:
<? php echo $ clientField [1] -> getWidget () -> id; ?>
<? php echo $ clientField [1] -> getWidget () -> name; ?>
Did it help?