Ok, I tripped checked searched for “field_id_7” and the input tags I found all had a blank value. But “field_ft_7” (now I am not sure what it is) has a value set as ‘none’.
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
October 30, 2007 6:23pm
Subscribe [4]#16 / Jul 01, 2008 10:40am
Ok, I tripped checked searched for “field_id_7” and the input tags I found all had a blank value. But “field_ft_7” (now I am not sure what it is) has a value set as ‘none’.
#17 / Jul 01, 2008 10:43am
Here is another weird item of interest. I wanted to see if I added another custom field what its value would be. So I created a test one, and it has a field id of 7 in the custom fields page…So now I have two fields with the id of 7.
#18 / Jul 01, 2008 10:51am
OK- something sounds seriously up with that. Hm- do you mind if I go in and take a look at the db- if that’s good, pm over supadmin access- url, uname, password.
And have you moved/upgraded recently?
#19 / Jul 01, 2008 10:55am
Nope, this is a fresh install. I’ll send it over in a sec.
#20 / Jul 01, 2008 11:09am
OK- took a quick look. DB is fine- think you’re seeing an order number. But the actual id numbers are 7 and 9- checked both the relevant tables.
And I THINK what’s up with the form is those missing hidden field. I tweaked book entry a bit- that got rid of the p tags. You’re hard coding the custom fields rather than using the stock loop- so they aren’t in there initially. I went in and added them- you’ll spot it. Now when you preview that one- no p tags.
That look like the issue? And based on the tweak, think you can get any others squared away?
#21 / Jul 01, 2008 11:38am
Trying to figure out how you did it. So you added some hidden fields:
<input type="hidden" name="field_ft_5" value="none" />
<input type="hidden" name="field_ft_7" value="none" />And those striped out the code? Interesting, but I think I do follow.
#22 / Jul 01, 2008 12:59pm
Yea- I checked the backend code. Basically- if there’s nothing specified in the post data re: field_ft (field formatting) it defaults to using xhtml. Otherwise- should use whatever is specified in post. With the regular ‘loops’ that create the fields, the field_ft_x is included automatically- and set to whatever the default is. But- since you’re hard coding them, no ft- so defaults to xhtml.
Just add hidden fields for each hard coded field_id_x and you should be good.
Oh- and a lot of times when I need to hard code things out like that? I start by putting up a stock saef tag- which generates most of the markeup for me- including the ft bits. Copy/paste/tweak- and go from there.
Anyhoo- look good to close this one out now?
#23 / Jul 01, 2008 1:21pm
Good stuff. Thanks a lot Robin! Sure, close er’ out!
#24 / Jul 01, 2008 5:25pm
I’ll do the honors, if you don’t mind… And if anything else comes up, you do know where to find us 😊