News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Custom Form Mod

Started by live627, July 09, 2008, 10:24:44 PM

Previous topic - Next topic

Camealion

When you submit you form where does the red * show up at?

Spoogs

Take out the word required from your list of options. I had this same problem. Just put the list of options and hope your users know its a required field.. most will fill it out just because its there.

Snuffsis

Quote from: Camealion on July 31, 2010, 05:36:56 PM
When you submit you form where does the red * show up at?
At the bottom where it says "*Required Field"
Quote from: Spoogs on July 31, 2010, 05:38:25 PM
Take out the word required from your list of options. I had this same problem. Just put the list of options and hope your users know its a required field.. most will fill it out just because its there.
I've done that, there is no "Required" for any of the options i got, that's why it's so strange.

bros

Requesting a feature for the next version of the mod - any chance that a permission could be added so that I can make it so a person can admin the custom forms?

fionax

I dunno man, I think the makers of the forms are MIA and not planning on doing another version (At least that is what one of their posts said)

If they do though, I would like to make the suggestion of having a preview button >>
Forum: www.absitomen.com [nofollow]
Version: SMF 2.0 RC3
Theme: Darkbreak
Host: Bluehost

Raths Rants

#1205
I was trying to get a colored output. When a person fills out the form depending on what they select I want it to be a specific color based on their selection.

I have chosen {select_object}

However on the form in the pull down menu of the selection window it will display as [color=red]Object 1[/color].

Is there a way to hide the coding on the pull down selection menu and still post correctly to the forum.

Object 1
Object 1
Object 1
Object 1

I fiddled with some of the HTML tags but they seem to break the selection field.
The DDC Network
a lot of hard work goes into easy

cosoa

I don't know if this is even possible, but in the future I would really love for there to be a way to make certain html/text conditional depending on the existence of input. For example, if a user leaves a field blank, certain text will not be posted. (I have a Nickname box; if there's no nickname entered, it still prints "Nickname:" and nothing after it.)

If I had my druthers I would make it behave a bit like the custom profile fields; each field has its own unique surrounding html/text. If each individual Custom Form option had this feature, and I could specify the surrounding html, then plug the entire thing into the main form output box with {optionname}, it would only show up if someone entered something into the input box. This way, if someone leaves a field blank, it doesn't print the surrounding html/text at all, everything looks neat and tidy, etc.

Just a thought! I was wondering if this sort of thing was already possible with the extra type parameters. There's an option for a conditional string if the field is left empty, but none for a string that prints only if there IS something entered into the field.

Raths Rants

I think the real issue comes back to the limitations of posting HTML code inside a forum post.

The setup is in HTML with the final output being in BBC code.

One of the tricks I used for the {input} field is use a basic naming structure.

So if I wanted to display a specific picture I would setup a selection field. The naming setup would be rw_{picname}.jpg. This would limit the input a user could supply helping prevent them from breaking the final output field.

[img]http:www.yourdomain.com/images/rw_{picname}.jpg[/img]

The selections would be "This Picture", "That Picture" and the file names would be rw_This Picture.jpg and rw_That Picture.jpg as an example.

As my above post I tried putting HTML code in the selection field and it seems to break it. Perhaps I am not doing the coding correctly.

This would be a work around for you cosoa. You might try that.
The DDC Network
a lot of hard work goes into easy

thellie

i'm interested in using this mod, but before i convert my existing form, spending hours creating new fields, i have a question...

can i use dynamic data in the fields, and if so how? i mean can i create menu lists based on data from mysql tables?

the add field boxes seem pretty basic, so i'm wondering if this is just for simple forms, and i would do better to convert my existing form and drop it into a simpleportal page?

i'll probably use this for things like the terms and conditions 'i agree' page, but at first glance, it doesn't seem versatile enough for what i want...
If you have any support questions, feel free to ask - be safe in the knowledge that I won't help because... I know nothing!

thellie

can this be adapted so that the entered data is put into custom fields (created by me) in the smf_members table?

i currently have an application form, as well as a number of others, and am struggling to adapt the coding in those to do this update. if the above is possible, the it may be worth my while to create new versions of the forms instead of trying to recode the old ones...

i have been at that for days now and getting nowhere with it  :'(
If you have any support questions, feel free to ask - be safe in the knowledge that I won't help because... I know nothing!

Nekrotik

Quote from: Snuffsis on July 31, 2010, 05:40:27 PM
Quote from: Camealion on July 31, 2010, 05:36:56 PM
When you submit you form where does the red * show up at?
At the bottom where it says "*Required Field"
Quote from: Spoogs on July 31, 2010, 05:38:25 PM
Take out the word required from your list of options. I had this same problem. Just put the list of options and hope your users know its a required field.. most will fill it out just because its there.
I've done that, there is no "Required" for any of the options i got, that's why it's so strange.

I'm doing exactly what you're doing with no issues. That is to say, I'm using a form to have people apply to my WoW guild and I'm using a drop down box for professions.

Nekrotik

Quote from: cosoa on August 10, 2010, 01:52:47 AM
I don't know if this is even possible, but in the future I would really love for there to be a way to make certain html/text conditional depending on the existence of input. For example, if a user leaves a field blank, certain text will not be posted. (I have a Nickname box; if there's no nickname entered, it still prints "Nickname:" and nothing after it.)

Or even better than the existence would be context depending fields.

If someone selected "druid" from a list of wow class types, the following box would have the options "Feral,Restoration,Balance", but if they picked "hunter", the following box would have the options "Marksman,Survivalist, Beast Mastery".

Nekrotik

Quote from: Defenestrate on March 13, 2010, 07:22:04 PM
I'm using Padexx's WoW-DK theme on 1.1.11. It seems that the theme breaks the mod. When it's installed and I go to setup page, I have no text at all. Just a couple blank boxes. Has anyone else had this problem with other themes? And is there an easy fix for this problem.
I have the same problem with the same theme. I simply change the theme that i'm using to the core them, make all the forms I want, and then change back.

Angelotus

Hi, is there a way to add the visual verification to the forms? I know how to add it, but I don't know where. In the customform.template.php file I can't find the form;id= template where to add it.

Grim Line

When i try to add the checkbox option and i add 20 options to choose from nothing comes up but 1 checkbox with no writing.

Zirc

Okay I searched this topic for my question but I didn't find it, if this issue has been answered already I apologize.  I use this on my SMF 1.1.11 forums currently and it works great.  I am currently setting up and testing an SMF 2.0 RC3 forums and have installed version 1.6 of this mod but when I click on the Add New Form button I get the following error.

Database Error
Field 'title' doesn't have a default value
File:  \test\Sources\ManageSettings.php
Line: 2506

Not sure what I need to do to fix it.
Thanks

FragaCampos

This mod was abandoned by it's authors, so it's going to be difficult to get help...

Zirc

Well I guess I'll have to wait and hope that somebody has a solution to the problem since this is pretty much and integral part of my guild website.  New members need to submit an application and I'd rather do it through forms so that they get submitted to an Admin only board and not a public one.  This was a great mod and I've used it alot in 1.1.11 and there isn't another one that I've seen that has the same functionality.

Zirc

Well it seems I found the problem.  I was looking at the database entry from the 1.1.11 version that I have and in the cf_forms table all the entries except for the first one (id_form) should be Null: Yes and Default: Null which was not the case if you look at the attached screenshot I took before I modified the tables.  Everything seems to be working just fine now.

uninvited13th

when i run the install.php it gives me an error..

QuoteFatal error: Function name must be a string in /xxxxxxxxx.xxx/install.php on line 53


im using 2.0rc3

Advertisement: