-
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?
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?
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.
-