Hi
I have a detail view, which contains one field I want to hide when adding a record, but show when editing. can see how to use jquery to hide, but not sure how to detect when its an insert and when its an edit. any pointers?
conditional hiding of a field in detail view
Re: conditional hiding of a field in detail view
For a new record the $data['selectedID'] is null. Maybe you can check this.
Bert
I am using Appgini 5.75
I am using Appgini 5.75
-
- Posts: 8
- Joined: 2014-10-31 20:11
Re: conditional hiding of a field in detail view
thanks, however, i have now solved this using this in noble-dv.js in my hooks folder
var nobled = document.getElementById("nobled")
if(document.getElementById("target").value=="")
{
nobled.hide();
}
simple and it works!
var nobled = document.getElementById("nobled")
if(document.getElementById("target").value=="")
{
nobled.hide();
}
simple and it works!