Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Evaluate analogue in JavaScript
Message
De
25/01/2018 09:04:21
 
 
Information générale
Forum:
Javascript
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01657529
Message ID:
01657536
Vues:
48
This message has been marked as a message which has helped to the initial question of the thread.
>>var setFormDirty = function (form) {
>>                var sform = $scope[form];
>>                if (sform && sform.editDailyCodesForm)
>>                    sform.editDailyCodesForm.$setDirty();
>>            }
>Similar, but I actually planned to use variable for the last part of the name (the editDailyCodesForm). I'm going to try it that way, I know I use it for other cases of the properties of an object, just not with the forms.

you can try this in the browser console:
var form = 'editDailyCodesForm'
$scope.form[form]
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform