Function / variable with field info
Hello,
is there any function/variable (similar to: "Ardevia.Expressions.Core.FieldValueProvider.GetFormFieldValue()") where all field names and/or all field values are stored (an array or object)? If yes, which one would it be?
Thank you in advance
0
-
Hello,
Please use the following script to retrieve the object that contains form fields values:
var ardFormWP = jQuery(".ard-formwebpart").first();
var controller = ardFormWP.data("Controller");
var listSchema = controller.InstanseData.formContext.ListSchema
var formFieldValues = {};
for (var field in listSchema) {
var fieldValue = Ardevia.Expressions.Core.FieldValueProvider.GetFormFieldValue(field);
formFieldValues[field] = fieldValue;
}Object formFieldValues stores the values of the form.
0 -
Great, thank you.
I was using the $("div[id*='ClientFormPlaceholder'] input") before, but it wasn't a good solution like this.
0
Please sign in to leave a comment.
Comments
2 comments