Inspiring
April 8, 2020
Answered
Multiple inputs form in a stamp
- April 8, 2020
- 1 reply
- 1563 views
Hi.
I am making a Dynamic stamp. I need to collect multiple data inputs from a form, and shows in the fields of the stamp. The code shows a dialog box every input, which is annoying:
this.getField("Name").value = app.response("Name");
this.getField("Corporation").value = app.response("Company");
this.getField("Invoice").value = app.response("Invoice");
I was triying with something like that, but it just gives me one input....
var oDlg = {
strName: "", initialize: function(dialog) {
dialog.load({"usnm":this.strName}); },
commit: function(dialog) {
var data = dialog.store();
this.strName = data[ "usnm"];},
description: { name: "Test Dialog", elements: [
{ type: "view", elements: [
{ name: "Enter your name:", type: "static_text", },
{ item_id: "usnm", type: "edit_text", char_width: 15 },
{ type: "ok_cancel", },
] },
] }
};
this.getField("Corporation").value= app.response(oDlg);
Anyway, not sure if the code is completely correct, but I think the idea is clear.
Thanks!!
