The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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

3 posters

Go down

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

Post by Michael_vx April 2nd 2014, 4:19 am

about that tuto
https://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
Michael_vx
Forumember

Male Posts : 659
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 April 2nd 2014, 11: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
Pizza Boi
Hyperactive

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

Back to top Go down

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

Post by Ange Tuteur April 2nd 2014, 5: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
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://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 April 2nd 2014, 9: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
Michael_vx
Forumember

Male Posts : 659
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 April 2nd 2014, 9:41 pm

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

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://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 April 3rd 2014, 4: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
Michael_vx
Forumember

Male Posts : 659
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 April 3rd 2014, 4: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
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://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 April 3rd 2014, 5:01 am

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

Male Posts : 659
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 April 3rd 2014, 5:06 am

You're welcome :rose:

Topic solved and archived
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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