Blesta Addons Posted June 19, 2019 Report Posted June 19, 2019 when we add domain from admin side, and when extension has a custom fields, the custom fields are not shown, they only shown if the validation return a error and the page reloaded again . from the code it appear the tld is only determinate when the post is submited, is not determinate on the fly by keypress . Quote
Jono Posted November 4, 2019 Report Posted November 4, 2019 Not a perfect solution, but a while ago we added the option to include a refresh_fields field which would allow you to submit and refresh the fields without receiving errors. Could look something like this: $label = $module_fields->label('Refresh Fields', 'refresh_fields'); $refresh_fields = $module_fields->fieldCheckbox( 'refresh_fields', 'true', (isset($vars->refresh_fields) ? $vars->refresh_fields : 'false') == 'true', ['id' => 'refresh_fields'] ); $label->attach($refresh_fields); $module_fields->setField($label); Quote
Jono Posted November 4, 2019 Report Posted November 4, 2019 Another option is to use the field in the same way that VPS.net does, watching for a field to change and then submitting the form via JS with this field set to 'true'. Quote
Blesta Addons Posted November 6, 2019 Author Report Posted November 6, 2019 i think you have misunderstand me, let make a simple example with logicboxes module, create a package for a tld that need a custom fileds like .le or .asia . from admin side in client profile page, got to add service, then select the package for that TLD, then only the standard fields will be shown, the custom fields will not be listed . Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.