JavaScript drop down menu selection |
5/20/2017 4:09:19 PM |
PHPRunner General questions | |
T
Tempus_Erus author
9.7 Build 28765 x64. Bootstrap. Popup window. |
|
![]() |
jadachDevClub member 5/20/2017 |
If it's on the add page, try this: |
T
|
Tempus_Erus author 5/21/2017 |
If it's on the add page, try this: var ctrlStatus = Runner.getControl(pageid, 'Status'); var ctrlScheduleDateField = Runner.getControl(pageid, 'ScheduleDateField'); pageObj.hideField("ScheduleDateField"); ctrlStatus.on('change', function(e){ if (this.getValue() == 'Schedule date'){ pageObj.showField("ScheduleDateField"); ctrlScheduleDateField.addValidation("IsRequired"); } else{ pageObj.hideField("ScheduleDateField"); ctrlScheduleDateField.removeValidation("IsRequired"); ctrlScheduleDateField.setValue(''); } });
|
![]() |
jadachDevClub member 5/21/2017 |
Not sure what you mean by "cannot retire a value in order to test accordingly" |
T
|
Tempus_Erus author 5/21/2017 |
Not sure what you mean by "cannot retire a value in order to test accordingly"
|