·
Added a discussion

Hi All,

I am new to UNA and I still trying to understand how everything works.

Now I am configuring profile section and I am facing some challenges. Your expert help will be much appreciated.

I would like to create a nested form to store data with multiple rows. In order to create a form, we need a new form with all require fields. I have created new form using developer but while created a new nested form fields on profile section, I was not getting option to select form.

Q1. while creating form it asked for table name. I had to create a table manually in order to add fields in that form. Could you please confirm if this is the steps or I did this wrong?

Q2. Why form is not appearing in nested form fields? Do i need to do anything for that form to appear in nested form?

Q3: If I have from and to date in nested form then how I can add validation to ensure that To Date is greater than from Date?

Q4. Once above nested form is created then I would like those form to get displayed in separate block on that page . How can I achieve that ?

Q5. In about section you can see that name of fields is printed in first line then in next line values are getting printed. How I can make those to get printed in single line?

  • 488
Comments
    • Attaching expected image of profile page.

      image_transcoder.php?o=sys_images_editor&h=2001&dpx=1&t=1715016228

      • Hello @deep !

        The first of all, the full-featured nested forms will require to have the custom module.

        Let's review your questions:

        1) Yes, it's correct, you should have the table which will store your form data.

        2) Yes, you should have the PHP code which will process your data and show the next form according to the entered info.

        3) Such custom check is possible to do in the code, but commonly the date fields are validated for the proper format.

        4) The forms have the "view" mode like we have for the Persons Info.

        5) It could be corrected by the CSS editing in the Custom Styles. It needs to work with the

        .bx-form-row-view-caption and .bx-form-row-view-caption CSS classes.

        • BTW - here is the good forms manual https://unacms.com/wiki/Dev-Forms

          • Hi @LeonidS ,

            Thank you so much for your answer. Please see my response below.

            Q2. Why form is not appearing in nested form fields? Do i need to do anything for that form to appear in nested form?

            Leonid: 2) Yes, you should have the PHP code which will process your data and show the next form according to the entered info.

            DK: I am able to see newly created form in nested form . How to make new form appear in below dropdown?

            image_transcoder.php?o=sys_images_editor&h=2003&dpx=1&t=1715081607Q3: If I have from and to date in nested form then how I can add validation to ensure that To Date is greater than from Date?

            Leonid: 3) Such custom check is possible to do in the code, but commonly the date fields are validated for the proper format.

            DK: Where I can write code to do validation can you provide any example?

            Q4. Once above nested form is created then I would like those form to get displayed in separate block on that page . How can I achieve that ?

            Leonid: 4) The forms have the "view" mode like we have for the Persons Info.

            DK: How to make view form displayed on profile? Which block I need to add on Profile Info page and how to define which form result to be printed?

            Q5. In about section you can see that name of fields is printed in first line then in next line values are getting printed. How I can make those to get printed in single line?

            Leonid: It could be corrected by the CSS editing in the Custom Styles. It needs to work with the

            DK: Thanks

            • DK: I am able to see newly created form in nested form . How to make new form appear in below dropdown?

              If I've got you right it will require the AJAX call. How it works - in your custom module PHP code) you have the method that generates the forms list. In the form you have the Javascript / JQuery command loading the mentioned method from PHP.

              DK: Where I can write code to do validation can you provide any example?

              Every form field in the Developer App has the "Check for" parameter where you may choose the variant for validation, for the date and time fields it looks like on the pic below:

              Or you may set the field as the text and write there the Regular expression check like:

              DK: How to make view form displayed on profile? Which block I need to add on Profile Info page and how to define which form result to be printed?

              The easiest way is to add the second Profile Info block and hide the unnecessary fields with the CSS.

              Login or Join to comment.