Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evaluate analogue in JavaScript
Message
From
25/01/2018 09:04:21
 
General information
Forum:
Javascript
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01657529
Message ID:
01657536
Views:
49
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform