But there are still some bugs in.
The Cancel is not indicated and gives just the default values back.
For an edit field comes not the text entered in the field, but a crazy structure (in the example the field "Name")
The answer gives back default instead of the new changed values. (in the example the field "SSN")
something went wrong with my last submission...
I think there is an error with the tooltips on line 1070: changed Prompt(:,3) to Prompt(:,4)
I also added the following line (2293) to have tooltips for all elements:
% style-dependent configuration
@Dan - Yeah, that error message is awfully cryptic and so ESL, isn't it? Sorry about that (it'll be improved in the next upload). It's telling you that the number of Formats elements do not match the number of Prompt rows. Here is how I modified your inputsdlg line to make it run:
[Answer,Cancelled] = inputsdlg(Prompt,Title,Formats(1:3),rmfield(DefAns,'DataFolder'),Options);
The dimensions of Prompt, Formats, and DefAns inputs are critical for this function to run. If you are creating a "dense" dialog (i.e., w/o any empty prompt cell), the number of rows of Prompt must match the number of elements of Formats, and DefAns' fields must exactly account for all the second column of Prompt array.
Good luck! -Kesh