[OzzModz] Advanced Forms

[OzzModz] Advanced Forms [Paid] 2.2.0 Beta 8

No permission to buy ($30.00)

Painbaker

Active Member
Validated XF Owner
Developer
7 7ore, I assume you have changed manually the XF's tables collation or moved database with another default collation?

You need to do the same with tables and columns from this add-on.

Code:
You must validate your XenForo license to see code

I strongly recommend to make a backup before running these queries.
 

7ore

New Member
Validated XF Owner
XF2 Forms Owner
XF2 Tours Owner
Thanks. (been out travelling a couple of days).
I recreated a db dump, but have not done any manual changes on it. But will investigate what might have happened.
This is my local testDB, so I can recreate a new dump when needed.
 

Awucard

New Member
Validated XF Owner
XF2 Forms Owner
Hi, I am trying to get the form to autofill a custom profile field with the field ID of 'nation'. The field is single-line as well as the answer I am wanting the default answer to show. However, even with someone with the field filled in, it shows up in the form as "m".... could anyone help me understand what I might be doing wrong?

1626471169061.png1626471210286.png1626471361828.png1626471419808.png
 

sbj

Member
Validated XF Owner
XF2 Forms Owner
XF2 Ticker Owner
A Awucard

This addon has no feature to do this. It has no way to fill a custom user field or a custom thread field.
 

Awucard

New Member
Validated XF Owner
XF2 Forms Owner
You must validate your XenForo license to see quoted content
Sorry, but are you certain of that? Especially when the plugin has this as help text it makes it sound like it's supposed to be possible...

You must validate your XenForo license to see quoted content
 

sbj

Member
Validated XF Owner
XF2 Forms Owner
XF2 Ticker Owner
You must validate your XenForo license to see quoted content
Yes, I am sure. You are omitting a very key thing in your quote.

You can use default answers for certain questions, such as the Single Line Text Questions. So when a user pulls out the form, for certain questions certain default answers are already chosen for that user. As you see in the description, there are different type of default answers you can provide. For example if you are asking for the user's e-mail, without him needing to enter it, you can have his e-mail previously entered in his account as the default answer. So he no longer needs to fill that again in the advanced form.

Like that you can also use custom user fields. Say you created a custom user field already and the user has filled it in his profile. Now you can use that saved entry as a default answer to one of your questions. BUT this addon has no feature to autofill a custom user field like you wish to do.

So you can autofill the form with default answers.
But you can't autofill custom user fields with the entries provided from the form.

See: https://snogssite.com/threads/advanced-forms-documentation.3677/#message-anchor-628

1626534472385.png
 

Awucard

New Member
Validated XF Owner
XF2 Forms Owner
Hi - I think I miscommunicated my issue. We are not trying to fill out / add a user profile field with Advanced Forms - rather we are trying to do what you showed in your picture, pull a field from their profile to be used as an answer in a form.

Our users have a single-line text custom field on their profile called "nation". For the default answer, I wrote {custom.nation} to try and auto-fill this value into the form. It did not fill out the nation field, and instead just wrote M (See original screenshot).

My profile, and my assistant both have the "nation" field filled in, but just get "m".

Additionally, trying to use {username} or {userid} also returns M. So this makes me wonder if we missed a configuration step along the way.
 

sbj

Member
Validated XF Owner
XF2 Forms Owner
XF2 Ticker Owner
Ah, okay, yeah, there was a miscomminication then as in your original question it sounded to me like you are trying to autofill custom user fields.

Yes, what you are trying to do should be possible. Let me try to make some tests in my environment and I will get back to you and tell you if there is a bug or what the problem might be.
 

sbj

Member
Validated XF Owner
XF2 Forms Owner
XF2 Ticker Owner
I can confirm this as a bug, none of the answers worked for me (XF v2.2.3 Patch 1 and Advanced Forms 2.2.0 Beta).

I assume updating my test board to the latest version of XF and/or the addon to Beta 4 will not solve the bug problem, as it doesn't work for you, too.

First, I tested on my old environment with XF 2.1 installation and those default answers worked (email, userid, username or customuserfieldID). But on the XF 2.2 version those don't work for me.

When I tested the 2.2 version months ago, I don't think I tested this feature (too many features to test) and on my live board I don't use default answers, so I never noticed this bug.

So, it seems this bug needs to be resolved whenever Ozzy finds the time ozzy47 ozzy47
 

Awucard

New Member
Validated XF Owner
XF2 Forms Owner
You must validate your XenForo license to see quoted content
Great, should I also use the "use bug report form" as well, or just leave it to that mention?
 

sbj

Member
Validated XF Owner
XF2 Forms Owner
XF2 Ticker Owner
You must validate your XenForo license to see quoted content
I am not sure how Ozzy handles it to be honest, but better be on the safe side and report it again. Your board might be on a more recent version of the addon and they might need board access to see it for themselves. So, just report it again, in worst case he can delete the report :).
 

Awucard

New Member
Validated XF Owner
XF2 Forms Owner
Bug report for version: 2.2.0

1. Issue: Advanced Forms Default Answer function broken, only loading “m”
2. Environment
1. XenForo v2.2.6 Patch 1
2. Advanced Forms 2.2.0 Beta 4
3. Steps to reproduce
1. Navigate to /admin.php?form-forms/
2. Create a new form
1. Fill in required information
2. Switch to Report type tab
3. Set report type to New Thread
3. Create 2 questions for the form
1. First question should be a single line text with default answer {username}
2. Second question should be a single line text with default answer {custom.nation} (or other custom profile field)
4. Proceed to open form and attempt to answer/submit
5. Expected Result
1. Form opens, first and second question have default answers in place from the user profile
6. Actual Result
1. Default answer displays as “m”, does not pull data from user profile
7. Visual Proof (screenshots, videos, text)
1. Please see https://snogssite.com/threads/ozzmodz-advanced-forms-paid.2329/page-38#post-27719
8. Severity/Priority
1. Medium – form plugin is still accessible, but feature does not work as intended. Temporary workaround is to have users fill in the information themselves, but can be tiring over several forms/re-fills.
2. SBJ reports that this feature worked on XF 2.1, but not 2.2 per a recent test.

Full error trace:
Code:
You must validate your XenForo license to see code
====

Well, we figured out where the bug report goes XD
 
  • Like
Reactions: sbj

Awucard

New Member
Validated XF Owner
XF2 Forms Owner
I have another question that may lead to yet another bug report!

I am currently attempting to have a form as a quick reply to a thread to which the form will submit to.

1626563944794.png

Unfortunately, as you can see in the screenshot I am unable to submit the form to the thread. It is to my understanding that this either

a) is a forum permission issue.
b) is a user criteria issue.

To the best of my knowledge, I am positively certain that I am able, under normal circumstances, to submit threads and posts fine. I also am sure that I have the user criteria in both the "Type" and "Form" (screenshots below). The user I am logged into (albeit testing on my production site :x *walks out in shame*) is both valid and has the secondary user group "501 | Citizen"

1626564166235.png | 1626564197671.png

So is this another bug or am I stupid?
 

sbj

Member
Validated XF Owner
XF2 Forms Owner
XF2 Ticker Owner
Nobody is stupid, all good :). I am now running the latest addon version beta 4 to test things for you.

Which of these options do you mean? 1st or 2nd?

In my environment the 1st one doesn't work indeed. The button is grayed out, I can't submit it inside the thread. But if I access the same form from the forms page, it works. So this is a bug.

The 2nd feature works though.

1626567235853.png
 

Vallorz

New Member
Validated XF Owner
XF2 Forms Owner
Hi, I have looked everywhere but can't seem to find it. Is it possible to change the text that displays when a user does not meet criteria for any form?

1626798397431.png

I'd like to put something like "You need to register/login before being able to submit an application"
 
Top