CalcBuilder Forum

Option List and Section

User mehmethocam1 2017-04-04 00:30:46

Hello,
I want to create the fields dynamically when making selections from the Option List.
Is it possible to do this? How can i?

sample site: https://goo.gl/XZBmMB
sample image: http://i.hizliresim.com/37zjO5.png

Sorry, my English:(

Moonsoft support 2017-04-04 10:35:59

Hello,
per your image seems you're trying to create a section, which is a form structure that the user can repeat several times. This kind of form is built-in in Calcbuilder, is called 'section', and you can check details on how to configure at this tutorial:

https://www.moonsoft.es/easyblog/entry/20-sections

or at quick guide (from page 26 -sections)

https://www.moonsoft.es/images/pdf/cb_quick_guide.pdf

and following this video tutorial:

https://www.youtube.com/watch?v=YDaYwAXAYVI

You also have available an example working calculator you can import that you can download from your user dashboard.

Once you have your sections working you may want to hide the 'add' button and replace for a combobox asking for the number of sections you want to add, this could be done using javascript (for this approach you would need an average knowledge of js, to add an event to the combobox that 'clicks' the add button 'n' times according to its value)

Hope this helps,regards

...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!