Forums: Hide / Show detail form conditionally from master table - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Hide / Show detail form conditionally from master table java script OnLoad event not working with PHPRunner 9.8 Rate Topic: -----

#1 User is offline   cardman3000 

  • Member
  • PipPip
  • Group: Members
  • Posts: 17
  • Joined: 23-November 16

Posted 20 November 2017 - 07:07 PM

Hi all,

is it possible that this snippet

$(".rnr-c-details").hide();


not working with PHPRunner 9.8 (Enterprise)?

This is something what I need in my project (to conditionally show or hide detail forms on Edit page depends on control on master page):
var ctrlControlBoxnameOnMaster = Runner.getControl(pageid, 'control box on master page');

$(".rnr-c-detailspagename").hide();
ctrlControlBoxnameOnMaster.on('change', function(e){
if (this.getValue() == 'YES'){
$(".rnr-c-detailspagename").show();
}else{
$(".rnr-c-detailspagename").hide();
}
});


Unfortunately that doesn't work. Maybe one of you knows more?

Thanks in advance
0

#2 User is offline   cardman3000 

  • Member
  • PipPip
  • Group: Members
  • Posts: 17
  • Joined: 23-November 16

Posted 24 November 2017 - 09:55 AM

This is not a push.

I only need to know: is this approach generally possible or not?

I found here few topics with the same question, but all of them were closed without any answer or solution.

Thanks!
0

#3 User is offline   macalister 

  • Member
  • PipPip
  • Group: Members
  • Posts: 25
  • Joined: 24-April 11

Posted 04 December 2017 - 11:01 PM

View Postcardman3000, on 20 November 2017 - 02:07 PM, said:

Hi all,

is it possible that this snippet

$(".rnr-c-details").hide();


not working with PHPRunner 9.8 (Enterprise)?

This is something what I need in my project (to conditionally show or hide detail forms on Edit page depends on control on master page):
var ctrlControlBoxnameOnMaster = Runner.getControl(pageid, 'control box on master page');

$(".rnr-c-detailspagename").hide();
ctrlControlBoxnameOnMaster.on('change', function(e){
if (this.getValue() == 'YES'){
$(".rnr-c-detailspagename").show();
}else{
$(".rnr-c-detailspagename").hide();
}
});


Unfortunately that doesn't work. Maybe one of you knows more?

Thanks in advance


You can inspect (F12) the div that contains the details and hide it.

For example my div that contains my details is <div class="bs-details">

$('.bs-details').hide();

ctrlControlBoxnameOnMaster.on('change', function(e){

 if (this.getValue() == 'YES'){
  $('.bs-details').show();
 }
 else{
  $('.bs-details').hide();
 }
});

0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic