Skip to main content

Search

Function / variable with field info

Comments

2 comments

  • m.fostyak

    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
  • Senad

    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.