Form Wizard Pro: Set focus on fields or validation summary.

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
12/30/2013 6:32:22 AM
Gravatar
Total Posts 44
Regards, Dilip Wanave

Form Wizard Pro: Set focus on fields or validation summary.

Hi,

I am using Form Wizard Pro and it is added at bottom of the page, whenever I click on submit button, cursor/focus goes to the top of the page, it doesn't looks user friendly.

So is there any way to set focus on controls or on the validation summary?

 

Thanks,

Dilip

12/31/2013 12:12:15 PM
Gravatar
Total Posts 18439

Re: Form Wizard Pro: Set focus on fields or validation summary.

Hi Dilip,

It should focus the first invalid input if the form has validation errors when the user clicks the button.

Can you create an example of the problem on our demo site?

Thanks,

Joe

1/1/2014 10:31:55 PM
Gravatar
Total Posts 44
Regards, Dilip Wanave

Re: Form Wizard Pro: Set focus on fields or validation summary.

Hi Joe,

I have verified on demo site, added new page and html content and Form Wizard Pro at bottom, but on Click on button I am going to top of the page.

 

Please verify here.

 

Thanks,

Dilip

1/1/2014 11:45:44 PM
Gravatar
Total Posts 36

Re: Form Wizard Pro: Set focus on fields or validation summary.

Hi Joe,

I am using mojoPortal Form Wizard Pro and I am facing two issues:

  1.  Added new page and html content and Form Wizard Pro at bottom, but on Click of submit button I am going to top of the page.
  2. On click of submit button focus is not set on the first invalid input

I have verified the functionality on mojoPortal demo site, on Click of submit button I am going to top of the page but focus is set on the first invalid input.

So my questions are:

  1. how to resolve the first issue?
  2. Currently in our project we are using mojoPortal’s Form Wizard version 2.6.0.9 and the latest version is 2.6.1.4 so is my second issue because of this?
  3. If we want to upgrade the license then do we have to purchase it again?

 

 

 

1/2/2014 12:42:39 PM
Gravatar
Total Posts 18439

Re: Form Wizard Pro: Set focus on fields or validation summary.

Hi,

you can always download the latest version of Form Wizard Pro by logging in as the user who purchased it then click "My Account" then click "Order History". Upgrades are free but always check the compatibility on the Form Wizard Pro product page to make sure if it is compatible. It is usually best to upgrade both mojoPortal and the add on products to the latest version to make sure everything is compatible.

I looked into this problem and was able to fix it just now on my local machine using the solution found here to maintain scroll position after client side validation fails.

So if you get the currently available version of Form Wizard Pro, it will focus the first invalid input, but the solution to make it scroll to the form will be in the next update of Form Wizard Pro since I fixed it just now.

Probably within a few weeks I will release a new version of mojoPortal as well as some updates to our add on products.

In the meantime a potential workaround is to add some jquery in the layout.master file something like this:

$(document).ready(function () {
$('#btnId').click(function () { window.scrollTo = function(x,y) { return true; }; });
});    

but replace btnId with the actual id of the button which you can find by viewing the source of the page.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.