cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CMS Form Submit Component

Former Member
0 Likes
920

Hello Experts,

I'm working on the Financial Services Accelerator.

The CMS Form Details Submit Component is responsible for displaying the form.

I'm creating a new form for a new product and added it to the navigation and after I created a subtype of the generic CMS Form Details Submit.

However the form is still not showing.

Can anyone with experience of working with the Orbeon Forms on Hybris please help.

Thanks in advance! :)

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Likes

Hi,

Please check if you have all necessary imports inside your RppDetailsSubmitComponentRenderer class. Based on to the screenshot of your items.xml file, I would say that CMSRppDetailsSubmitComponent should be generated without any issues. Just verify if your RppDetailsSubmitComponentRenderer has valid imports for CMSRppDetailsSubmitComponentModel, FinancialservicesConstants and other necessary classes.

Regards, Nikola

Former Member
0 Likes

Hi Lazar,

Please find below the steps and the screenshots I performed, however please bare in mind that some of my logic could be misunderstood since I recently started development in the financial accelerator.

1. I started by defining a new bean for the subtype in the financialservices-items.xml file in the resources folder

2. I created the renderer for the subtype in the financialacceleratorstorefront-web-spring-xml in the spring folder

3. I created global attributes in the constants file in order to get/set these attributes in the view

4. I created the view of the subtype in the cms folder

5. Also, based on my understanding and seeing the other subtypes of the such as cmstripdetailssubmitform, the subtype will be using the controller from the parent type. However, if a controller should be implemented then where should it be implemented and how should it be connected/bind to the view?

After following these steps, I tried to run ant clean all command so I could add this component to a page on the hmc however the following error occurred.

I believe that the problem could be that part of my code is misplaced in another file or I missed some steps. So, comments or alternative detailed steps would be highly appreciated since the tutorials were not clear enough.

Thank you for your kind cooperation.

Best Regards,

Former Member
0 Likes

Also, kindly find attached a screenshot of the error.

Former Member
0 Likes

Hello Lazar,

Kindly find below the steps that I have done.

Using PCM: 1. Created Product 2. Assigned Product to Category 3. Created a Bundle 4. Created a category for the 2 forms (1 Form for insurance product and another for personal details)

Using Backoffice: 1. Created a form and assigned it to the form category

Using hMC: 1. Created a category page and marketing page. 2. Created Section 1 3. After that Section 1 Slot and Section 1 Slot for pages. 4. Opened Types, then CMSFormSubmitComponent 5. Created a subtype of the CMSFormSubmitComponent (Generate code set to yes) however the Jalo Class is the one of the CMSFormSubmitComponent not the subtype which is not the case for the travel, auto, etc. 6. Assigned the application ID and form ID to the created subtype

I'm a , I have asked my colleague Amr (Developer) to add his steps after my reply.

Your help is very much appreciated!

Best Regards,

Former Member
0 Likes

Hi,

Can you share what have you tried to do in more details - items.xml adjustments + impex changes I asume, and also paste the snippets if possible? Also, log contents could help.

Are you trying to present a Form for a specific product/category or general form?

Regards, Lazar