![]() |
Needed feature for ISPConfig 2.X
When adding a new element in the form designer, there should be a way to specify permissions rules (Permitted for Reseller? Permitted for client?)
For example, you may want to have exclusive features for the administrator only in the website hosting plans or website adding form (Text input fields or checkboxes, etc) . Right now adding a new element in the website adding form includes also the reseller by default, which might no be what one have in mind... Or I have missed something? :) |
You can change the visibility of form elemnts in the code of the onshow event of the form action file.
|
I did a fast view and saw a lot of references like this
Code:
if (something)In other codes I see this, which seems to be better Code:
getElementByName(name) |
There is already a getElementByName function implemented:
$doc->deck[0]->getElementByName('web_mailquota')->visible = 0; But the older code addresses the fields by ID. If you moved your field up, you will either have to change the ID's for all elements that where now on another position or replace the IS's by the getElementByName syntax which will help us in future. |
Ok no problem, I'll update the code then for that form. Thanks for the help...
|
| All times are GMT +2. The time now is 08:30. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.