Field remain open after input
Posted: 2020-06-23 18:37
Appgini 5.82, April. AG H JS L
Here is the basic code usage I'm using.
problem I'm having in Detail View, in fields that have been "filled" doesn't remain open when another selection is made from another drop-down list.
Is there a keep filled fields open?
Another question, is there a way to turn a "filled fields" into a link back to parent with a double click function, instead of the green + button.
Here is the basic code usage I'm using.
Code: Select all
//hide fields
new AppGiniFields(["field1", "field2", "field3", "field A", "field B, "field C", "field D", "field E", "field 1a", "field 2b", "field 3c", "field 4d"]).hide();
//onReady
new AppGiniDetailView().ready(onReady);
//onChange fields
function onReady() {
new AppGiniField("field_opn_clos").onChange(onTestChanged);
new AppGiniField("field_2_opn_clos").onChange(onTestChanged);
}
//switch
function onTestChanged(value) {
console.log("field_opn_clos changed: " + value);
console.log("field_2_opn_clos changed: " + value);
new AppGiniField("field1").show(value=='Official Role');
new AppGiniField("field2").show(value=='Personal Role');
new AppGiniField("field3").show(value=='Title');
new AppGiniField("field 1a").show(value==Group 1');
new AppGiniField("field 2b").show(value=='Group 2');
new AppGiniField("field 3c").show(value=='Group 3');
new AppGiniField("field 4d").show(value=='Group 4');
var dv = new AppGiniDetailView();
var tabMeta = dv.addTab("tabMeta", "Family", "link"); // todo: i18n
var tabTask = dv.addTab("tabTask", "Family", "link"); // todo: i18n
var metaFields = new AppGiniFields(["field A", "field B, "field C", "field D", "field E"]);
var taskFields = new AppGiniFields(["field 1a", "field 2b", "field 3c", "field 4d"])
tabMeta.add(metaFields);
tabTask.add(taskFields);
Is there a keep filled fields open?
Another question, is there a way to turn a "filled fields" into a link back to parent with a double click function, instead of the green + button.