This is only possible in the Lema widget.
In some situations, you want to hide or show some steps or blocks (see above). Therefore the widget instance has a method hideStep/showStep respectively hideBlock/showBlock.
The following steps are available:
+ donation-target
+ amount
+ payment-method
+ customer-identity
+ customer-address
+ recipient-information
+ members
Example of how to hide the donation target and the amount while showing the block ‘customer firstname’:
<script type="text/javascript">
window.rnwWidget = window.rnwWidget || {};
window.rnwWidget.configureWidget = window.rnwWidget.configureWidget || [];
window.rnwWidget.configureWidget.push(function(options) {
options.widget.on(window.rnwWidget.constants.events.WIDGET_LOADED, function(event) {
event.widget.hideStep("donation-target");
event.widget.hideStep("amount");
event.widget.showBlock("customer_firstname");
});
});
</script>
Comments
0 comments
Please sign in to leave a comment.