Developer forum

Forum » CMS - Standard features » Question about Forms for Editors

Question about Forms for Editors

Sean Meade Dynamicweb Employee
Sean Meade
Reply

Hello,
On the Winnebago website (https://dev-beaker-wgo.dw-demo2.com/home) we have the following situation:
- Forms for Editors module attached to a page, page which we get via an ajax call in another pages, the contents being rendered in a modal window.
- That Forms for Editors module has an option under 'User Management' section to create a user on form submit. If the user checks the checkbox in the front end (see attached screenshot) we want to check the 'Create a user on form submit' in the module as well , and vice-versa. Basically we need to sync those two checkboxes.
One solution would be to create two separate pages , one with 'Create a user on form submit' checked and another one with the checkbox unchecked , but I'm wondering if there's any other elegant solution to this issue.
Thanks

Sean posting for Florin Patrascanu who is having trouble accessing the forum from Romania

FormsForEditors.png

Replies

 
Nicolai Pedersen
Reply

Take a look at this piece in the docs - it should explain how to override app settings:

https://doc.dynamicweb.com/documentation-9/content/apps/forms-for-editors#3326

BR Nicolai

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Nicolai,

 

The guys from Romania are having some trouble so I am posting this for them. This does not seem to work with these fields. Can you ask QA to look into it and/or provide another idea for us to explore?

Here's their response

 

I've created the following fields - CreateUserOnSubmit - and - CreateUserOnSubmitAllowed - under Brochure Download form and set the value on them as seen on the module :

<input type="hidden" id="CreateUserOnSubmit" name="CreateUserOnSubmit" value="1">
<input type="hidden" id="CreateUserOnSubmitAllowed" name="CreateUserOnSubmitAllowed" value="true">

 

 

I've also tried to make CreateUserOnSubmit of type checkbox :

<input type="checkbox" id="CreateUserOnSubmit" name="CreateUserOnSubmit" checked="checked" value="1">
<input type="hidden" id="CreateUserOnSubmitAllowed" name="CreateUserOnSubmitAllowed" value="true">

 

However , when I try to submit the form with those values , no user is created under Newsletter user group.

Attempt with checkbox : https://screencast-o-matic.com/watch/cqXY2nUuDq

Attempt with hidden : https://screencast-o-matic.com/watch/cqXY2DUubu

 

Best Regards,

Nuno Aguiar

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

There is another post from me from a while ago:

https://doc.dynamicweb.com/forum/cms-standard-features/cms-standard-features/assign-user-to-group-on-form-submit

The behavior seems identical but I did not get a solution for it.

Adrian

 

You must be logged in to post in the forum