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 Wed 2 Apr - 4:19

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 : 664
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 Wed 2 Apr - 11:08

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 Wed 2 Apr - 17:34

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 : 13246
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 Wed 2 Apr - 21:16

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 : 664
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 Wed 2 Apr - 21:41

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

Male Posts : 13246
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 Thu 3 Apr - 4:42

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 : 664
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 Thu 3 Apr - 4:46

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 : 13246
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 Thu 3 Apr - 5:01

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

Male Posts : 664
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 Thu 3 Apr - 5:06

You're welcome :rose:

Topic solved and archived
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Back to top


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