Simple Forms [Paid] [Deleted]

Besides the date field, is there a way of putting a clock field? To type in the time?

In the destination field, can I use a conditional for the title field?
("Enter the title of the thread. You may use {$visitor.username} for the submitters username and any other template variables.")
Something like, if $fields.MyField.value not empty, put "..." in title?
 
Besides the date field, is there a way of putting a clock field? To type in the time?

In the destination field, can I use a conditional for the title field?
("Enter the title of the thread. You may use {$visitor.username} for the submitters username and any other template variables.")
Something like, if $fields.MyField.value not empty, put "..." in title?
Conditionals can be used in whatever destination fields show the field helper. Otherwise they cannot.

As for the a time field, the only field we have is date. Time can be added in the future, but not at this time.
 
I am doing something wrong, but don't know what. Trying to format the thread title

{$fields.field1.value} | {$fields.field2.value} | {$fields.field3.value} <xen:if is="{$fields.field4.value} == ""> <xen:else /> - {$fields.field4.value} </xen:if>

So if the value of field4 is empty, do nothing, else put the value of field4.
 
I am doing something wrong, but don't know what. Trying to format the thread title

{$fields.field1.value} | {$fields.field2.value} | {$fields.field3.value} <xen:if is="{$fields.field4.value} == ""> <xen:else /> - {$fields.field4.value} </xen:if>
What does it spit out?
 
The following error occurred:
Line 1: Template syntax error.
After your =, it looks like you put a " as opposed to two single quotes like ''
Code:
<xen:if is="{$fields.field4.value} == ''"> <xen:else /> - {$fields.field4.value} </xen:if>
 
  • Like
Reactions: sbj
Ah, right. I thought you forgot actually to open the quote but I see now the quote is opened after "if is=". Thanks.
 
Can I format the form questions? Because there is no time field, I would want to put 2 fields like that:

Time: __:__
So 2 single line text boxes but with requiring to match numbers.
 
Can I format the form questions? Because there is no time field, I would want to put 2 fields like that:

Time: __:__
So 2 single line text boxes but with requiring to match numbers.
If you know a good amount of CSS you can do whatever you want, but it's time consuming and probably not worth it. As of this moment there is no easy way.
 
  • Like
Reactions: sbj
Hmm, ok, sorry to hear that.

One more question. How can I change the background-color of the WYSIWYG field?
As for now this box has the same color as the rest of the page and you can hardly realize it.
 
Hmm, ok, sorry to hear that.

One more question. How can I change the background-color of the WYSIWYG field?
As for now this box has the same color as the rest of the page and you can hardly realize it.
That's a general XenForo style question. You can find form style properties in Style Properties section under "Appearance".
 
  • Like
Reactions: sbj
Is it possible to make it so people are unable to submit a forum without x number of forum posts?
Sure, simply make it so your registered users cannot post form submissions. Then create a new usergroup that has that permission. Create a usergroup promotion that has X number of posts and upgrades users to that secondary usergroup.
 
Hello John,

i have a question - can you please make a own phrase here:

lpsf_form_destination_edit phrase "name"
PHP:
                <!-- slot: before_name -->

                <xen:hook name="form_destination_edit_general_information">
                        <xen:textboxunit name="name" value="{$formDestination.name}" label="{xen:phrase name}:" data-liveTitleTemplate="{xen:if {$formDestination.form_destination_id},
                            '{xen:phrase edit_form_destination}: <em>%s</em>',
                            '{xen:phrase create_new_form_destination}: <em>%s</em>'}">
                        </xen:textboxunit>

                <!-- slot: after_name -->

In german language its also "Name" and peopel think "name? My name? My username?" but here it means "destination name" and we so dont can easily translate it to the german "Ziel Name" eg to not confuse the peopel that use your add-on. ;)

So, its not a bug - but a litle design issue for other languages than the english language.

Regards
 
How many database queries do form pages make? Is it +1 per input field?

Also, are there any performance issues with medium to big boards?
 
How many database queries do form pages make? Is it +1 per input field?

Also, are there any performance issues with medium to big boards?
The number of form fields has no impact on the number of queries. It's the same 13 queries for 1 form field vs 50 form fields.
 
Back
Top Bottom