HTML5 Data Bindings Support Product Page

Answered

Hide Detail region

Asked 03 Dec 2013 22:30:36
2
have this question
03 Dec 2013 22:30:36 Brad Lawryk posted:
Is it possible to hide a detail region until a record is selected?

Replies

Replied 04 Dec 2013 09:03:10
04 Dec 2013 09:03:10 Teodor Kuduschiev replied:
Hello Brad,

Yes, this is possible by using simple css. For example:
You set the following properties to your detail region id:
{ display:none;}
- This way when the page loads the detail region will be hidden.
Then on the record/button that selects your record you set:
{ display:block;}
- the detail region appears.
Replied 24 Oct 2015 21:32:57
24 Oct 2015 21:32:57 Hamarhu Hamaral replied:
Can I see an example please?
Replied 29 Sep 2016 15:15:37
29 Sep 2016 15:15:37 Jacques H replied:
I understand assigning the class display:none and it hides the div. But I don't get where to put the display:block to show the div with the form
Replied 29 Sep 2016 17:55:47
29 Sep 2016 17:55:47 Teodor Kuduschiev replied:
Hi Jacques,
just use the DW change property behavior - apply it to the link/button which selects the records.
Replied 03 Oct 2016 14:58:42
03 Oct 2016 14:58:42 Jacques H replied:
Now I have this to hide the form: onblur="MM_changeProp('form','','{display:none;}','','FORM')"

And this to show it when link "change" is clicked: onClick="dmxDataBindingsAction('selectCurrent','repeat1',this);MM_changeProp('form','','{ display:block;}','','FORM')"

The form hides, but doesn't show when "Change" is clicked. What am I doing wrong?
Replied 03 Oct 2016 15:16:19
03 Oct 2016 15:16:19 Teodor Kuduschiev replied:
can you tell me where and why did you apply the onblur behavior?
Replied 03 Oct 2016 15:26:02
03 Oct 2016 15:26:02 Jacques H replied:
LOL, no I can't. It was added when applying change property behavior. Hiding the form with css also worked. But I can't get the combination of hiding the form and showing it on clicking "change" link. I know it's wrong.

Reply to this topic