The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

about the code of add a form creation of a new topic

View previous topic View next topic Go down

Solved about the code of add a form creation of a new topic

Post by Michael_vx on April 2nd 2014, 3:19 am

about that tuto
http://help.forumotion.com/t131789-add-a-form-on-creation-of-a-new-topic
can this code be apply to contact us page
i didnt try any thing with the code yet
i still wander can this can be used on contact us page and can that code handle Arabic thank you
Hello

Michael_vx
Forumember

Male Posts : 655
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Solved Re: about the code of add a form creation of a new topic

Post by Pizza Boi on April 2nd 2014, 10:08 am

Hi Very Happy

Well, I'm pretty sure you can IF you change the mode but I'm not sure if it'll be able to handle Arabic. Hopefully Ange has a solution so I can pattern over it and make one on French as well '-'.

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: about the code of add a form creation of a new topic

Post by Ange Tuteur on April 2nd 2014, 4:34 pm

Hello Michael_vx,

You have to remove the query search from the condition, and change the pathname to the contact us page path. You also need to change the textarea selected :
Code:
$(function() {
  if (location.pathname == '/contact') {
  $('#message').val('FORM');
  }
});

It should be able to support Arabic, just write between the single quotes where FORM is.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: about the code of add a form creation of a new topic

Post by Michael_vx on April 2nd 2014, 8:16 pm

@Ange Tuteur wrote:Hello Michael_vx,

You have to remove the query search from the condition, and change the pathname to the contact us page path. You also need to change the textarea selected :
Code:
$(function() {
  if (location.pathname == '/contact') {
  $('#message').val('FORM');
  }
});

It should be able to support Arabic, just write between the single quotes where FORM is.
yeah worked by th way what kind of codes i should use in font moding like bold collor or any thing else
topic is solved i guess just tell me the font moding and done
Cool

Michael_vx
Forumember

Male Posts : 655
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Solved Re: about the code of add a form creation of a new topic

Post by Ange Tuteur on April 2nd 2014, 8:41 pm

For the contact page ? I do not believe those messages have formatting.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: about the code of add a form creation of a new topic

Post by Michael_vx on April 3rd 2014, 3:42 am

@Ange Tuteur wrote:For the contact page ? I do not believe those messages have formatting.
Shocked
about topics formatting !
sorry i didnt say that !

Michael_vx
Forumember

Male Posts : 655
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Solved Re: about the code of add a form creation of a new topic

Post by Ange Tuteur on April 3rd 2014, 3:46 am

You can use bbcode :
Code:
val('[b][color=red]Field 1:[/color][/b]')

or HTML :
Code:
val('<span style="color:red;font-weight:bold;">Field 1:</span>')

It depends on what you're comfortable with using.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: about the code of add a form creation of a new topic

Post by Michael_vx on April 3rd 2014, 4:01 am

thanks so much Ange
once again you saved me Very Happy
topic is solved

Michael_vx
Forumember

Male Posts : 655
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Solved Re: about the code of add a form creation of a new topic

Post by Ange Tuteur on April 3rd 2014, 4:06 am

You're welcome :rose:

Topic solved and archived

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum