Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Accueil / forum / Public Forum / Main Forum / Delete a required field from a form

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

Delete a required field from a form

More
12 years 6 months ago #4962 by jeremyb
Hello,

I'm using the bronze version.
I set up the parameter "automatic creation of an account when posting an ad".
So, in my "post an ad" form I have the three fields login, password and name.

Is it possible to delete the "name" required field and to keep only login and password?

Thanks for your help.
Report This
More
12 years 6 months ago #4992 by loic
Hello,

Sorry, this is not a feature of AdsManager yet.
Report This
More
12 years 5 months ago - 12 years 5 months ago #5260 by jeremyb
Hello,

OK. It would be a good parameter in order to clear the form when we don't need t use it.


At first, I asked to a joomla forum because I thought it would be a modification in the joomla code but someone gave me an easiest way to do it.
I should add some lines somewhere in the code which would say:
"when the user gives his name, automatically fill the username field with the same value" then don't display the username field.

He also gave me those lines:
$(document).ready(function(){
$( "#username" ).on("change", function() {
$( "#name" ).val() = $("#username").val();
}});

I suppose I have to add them in the "components\com_adsmanager\views\edit\tmpl\defaut.php" file but I'm not sure.

Do you think it is possible to do it that way?

Thank you
Report This
Last edit: 12 years 5 months ago by jeremyb.
More
12 years 5 months ago #5272 by loic
Hello,

You are free to modify the code if you need.

But I advice you to do an override of the views you need to customize.
Here is a link to help you :
www.joomprod.com/documentation/doc-view-override.html
Report This
More
12 years 5 months ago #5283 by jeremyb
ok. Thank you.
Report This
Moderators: perry
Time to create page: 0.077 seconds
Powered by Kunena Forum