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.

post form

View previous topic View next topic Go down

Solved post form

Post by Fernanda Nunes on April 30th 2017, 1:52 am

Hello how are you?
I would like to create a post form with the following items in all topics:
Product Specification:
Buy or Sell:
CIF or FOB or CFR:
Qunatity:
Price:
Payment Type:
Time of Validity of the offer or inquiry:
Other observations:
Being that filling out this form is not mandatory, but just to direct, I do not even know what HTML means, so I really need help to accomplish this miracle in science, please give me the code to copy and cole in java Sniff


Last edited by Fernanda Nunes on May 1st 2017, 8:21 pm; edited 1 time in total
avatar
Fernanda Nunes
New Member

Posts : 23
Reputation : 2
Language : portuguese

Back to top Go down

Solved Re: post form

Post by SLGray on April 30th 2017, 2:44 am



When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 40891
Reputation : 2776
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: post form

Post by Fernanda Nunes on April 30th 2017, 8:48 am

I added it:
$(function() {
if (location.pathname == '/post' && location.search == '?f=388&mode=newtopic') {
$('#text_editor_textarea').val('Product Name:');
}
});

But didnt work. Im a lawyer, I dont know how to make this codes dear Of course...
avatar
Fernanda Nunes
New Member

Posts : 23
Reputation : 2
Language : portuguese

Back to top Go down

Solved Re: post form

Post by skouliki on April 30th 2017, 9:11 am

hello

the reasons for not working are cause you did not write your form fields between the single quotes in val() and the line breaks must be written as \n otherwise you risk breaking the script.

see again the tutorial and follow the steps
avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 3167
Reputation : 494
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: post form

Post by Fernanda Nunes on May 1st 2017, 1:07 am

$(function() {
if (location.pathname == '/post' && location.search == '?f=388&mode=newtopic') {
$('#textarea_content > div > textarea').val('Field 1:\nField 2: Don\'t fill this field in\nField 3:');
}
});

id:388
val = Product Name
Why please its not working
avatar
Fernanda Nunes
New Member

Posts : 23
Reputation : 2
Language : portuguese

Back to top Go down

Solved Re: post form

Post by SLGray on May 1st 2017, 4:24 am

Do you have JavaScript Management activated?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 40891
Reputation : 2776
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: post form

Post by skouliki on May 1st 2017, 7:54 am

@Fernanda Nunes wrote:Hello how are you?
I would like to create a post form with the following items in all topics:
Product Specification:
Buy or Sell:
CIF or FOB or CFR:
Quantity:
Price:
Payment Type:
Time of Validity of the offer or inquiry:
Other observations:
Being that filling out this form is not mandatory, but just to direct, I do not even know what HTML means, so I really need help to accomplish this miracle in science, please give me the code to copy and cole in java Sniff

try this code
Code:
$(function(){ if(location.pathname=='/post'&&location.search=='?f=388&mode=newtopic'){ $('#text_editor_textarea').val('[b]Product Specification[/b]:\n[b]Buy or Sell[/b]:\n[b]CIF or FOB or CFR[/b]:\n[b]Quantity[/b]:\n[b]Price[/b]:\n[b]Payment Type[/b]:\n[b]Time of Validity of the offer or inquiry[/b]:\n[b]Other observations[/b]:');
  }
});
avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 3167
Reputation : 494
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: post form

Post by Justice™ on May 1st 2017, 8:45 am

Hello,

@skouliki, that code ain't going to work. @Fernanda Nunes, add this code with placement on all the pages:
Code:
$(function(){
var f=388;
if(/f=/+f+/&mode=newtopic/.test(window.location.search)){
$("textarea").sceditor("instance").insertText("Product Specification:\nBuy or Sell:\nCIF or FOB or CFR:\nQuantity:\nPrice:\nPayment Type:\nTime of Validity of the offer or inquiry:\nOther obervations:");
}
})
You have to modify number 388 from
Code:
var f=388
with the id of the forum. Make sure that you have the Javascript codes management activated. If it is not working, post your forum address here for us to take a look at it.
avatar
Justice™
Forumember

Posts : 521
Reputation : 121
Language : Romanian and English

http://board.realmsn.com

Back to top Go down

Solved Re: post form

Post by Draxion on May 1st 2017, 6:50 pm

@Wolfuryo... that code she placed will work just fine just so you know. lol
avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 1840
Reputation : 230
Language : English
Location : USA

http://www.draxionsgameden.com/

Back to top Go down

Solved Re: post form

Post by Justice™ on May 1st 2017, 7:01 pm

Well, in didn't work in the firefox console, but i might have messed something up. Smile
avatar
Justice™
Forumember

Posts : 521
Reputation : 121
Language : Romanian and English

http://board.realmsn.com

Back to top Go down

Solved Re: post form

Post by Fernanda Nunes on May 1st 2017, 7:34 pm

I thank you very much for your patience, I am a lawyer in Brazil, I do not understand anything of these codes and I am suffering horrors researching the days about it to try to do this.
I need a code to put in the post form the following:
Product Specification:
Buy or Sell:
CIF or FOB or CFR:
Quantity:
Price:
Payment Type:
Time of Validity of the offer or inquiry:
Other observations:
The code you gave me has not worked yet, as you can check below on the prints I've removed for you to see.
http://forum.wbcforum.com/post?t=388&mode=reply
When replying to a topic still does not appear "Product Specification" to be filled, remembering that this form is not mandatory for forum members, but only one direction in their posts.
Thanks again for the immense patience, if you can not modify the post form, no problem, I give up, because I've tried a lot and nothing works



avatar
Fernanda Nunes
New Member

Posts : 23
Reputation : 2
Language : portuguese

Back to top Go down

Solved Re: post form

Post by Justice™ on May 1st 2017, 8:08 pm

This got solved by PM. Working code:
Code:
$(function(){
if(/388&mode=newtopic/.test(window.location.search)){
setTimeout(function(){
$("textarea").sceditor("instance").insertText("Product Specification:\nBuy or Sell:\nCIF or FOB or CFR:\nQuantity:\nPrice:\nPayment Type:\nTime of Validity of the offer or inquiry:\nOther obervations:");
}, 1000);
}
})


Last edited by Wolfuryo on May 1st 2017, 8:17 pm; edited 1 time in total
avatar
Justice™
Forumember

Posts : 521
Reputation : 121
Language : Romanian and English

http://board.realmsn.com

Back to top Go down

Solved Re: post form

Post by Fernanda Nunes on May 1st 2017, 8:11 pm

Thank you dear, you are the best, thank you Hello Hello Hello Hello Hello
avatar
Fernanda Nunes
New Member

Posts : 23
Reputation : 2
Language : portuguese

Back to top Go down

Solved Re: post form

Post by SLGray on May 1st 2017, 11:44 pm

Problem solved & topic archived.
Please read our forum rules: ESF General Rules
Everyone needs to remember that support is not through PM's, except for issues with founder's password.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 40891
Reputation : 2776
Language : English
Location : United States

https://fmthemes.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