Jump to content
  • 0

Question

Posted

Hi,

 

I have added extra fields required for domain registration in config files.

I want to write jquery code for it. i.e if user has selected entity type  = person display fields related to it.

if(entity = "person"){
 //Show person related fields
} elseif( entity = "company"){
 //Show company related fields
}

Where can I write this kind of jquery code?

6 answers to this question

Recommended Posts

  • 0
Posted

Normally you should ad your code the order template file (registration template) .

 

have you tried my css & javascript toolbox plugin :) ?

 

I cannot use your plugin.

 

Can I add code to config file or somewhere else.

  • 0
Posted

as i told you before, in registration template file under order plugins .

 

I am trying to create module.

If I will do anything in plugins it will be applied to only my blesta version and will not work for others who will use my module.

  • 0
Posted

I am trying to create module.

If I will do anything in plugins it will be applied to only my blesta version and will not work for others who will use my module.

you want to put this in your module action ? creation / suspend /edit ?

the config file is not supporting jquery code or any type of css .... what you need is to make a validation with input on submit form (getrules()) .

check this post can help you

http://www.blesta.com/forums/index.php?/topic/3291-how-to-transfer-domain-from-admin-panel/?p=24037

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...