Page 1 of 1
Collapsible Block Header On Click Event
Posted: Sun Jul 26, 2015 9:42 pm
by Jack Bua
I have this code on a mapping from a Service Response $ to a mobilecollapsblock:
element.on("click", function () {
Apperyio.storage.selected_job_lineitem.set(value);
});
but it does not work like it does on lists, probably because the collapsblock and collapsblockheader are separate things and $ cannot be mapped to header.
I want to get AT LEAST the id of the record that shows in that collapsible block and save it so LSV when the collapsible block header is clicked. How can I do that?
Collapsible Block Header On Click Event
Posted: Tue Jul 28, 2015 7:06 pm
by Pavel Zarudniy
Hi Jack,
To select block from header try to use this:
codeelement.on("click", function () {
$(this).next('.ui-collapsible-content')
});
/code
Collapsible Block Header On Click Event
Posted: Wed Aug 05, 2015 1:26 am
by Jack Bua
I want to click on the header and it to grab the mapped value and place it in an LSV, as I state above. I cannot see how to use the code you provided to do that as there is no way to add JS to a header in the visual builder.
Collapsible Block Header On Click Event
Posted: Thu Sep 17, 2015 12:15 am
by Anand
I'm having same issue.. any update on this
Collapsible Block Header On Click Event
Posted: Thu Sep 17, 2015 6:13 am
by Serhii Kulibaba
Hello,
Could you use element attributes for writting values for services executions?
Please look this example with the list item: https://devcenter.appery.io/documenta...
You have to use the same for collapsible block