How to insert fields in Ask Form? Getting error

134 viewsThemesphone number field
0

Hi – I am trying to add the INPUT FIELD code as mentioned on link in the AnsPress>Plugin theme file editor> Templates>Functions.php file (at the end)
https://anspress.net/resources/faq/anspress-form-and-validation-api/
I get the below error:
Your PHP code changes were rolled back due to an error on line 158 of file wp-content/plugins/anspress-question-answer/templates/functions.php. Please fix and try saving again.

syntax error, unexpected '<', expecting end of file

How to insert a TEXT Field in Ask Form? I Get below error in the functions.php file. (See screenshot attached)

Answered question
0

Hello,
In this case as you’re adding it to an existing functions.php the initial <?php line is not needed. If you remove that and have the snippet start at:
// AnsPress form text field example.
This should resolve your issue.
Cheers,
Dan

Posted new comment

Hi Dan – This crashed my website.. Im trying the Recovery Mode

Im currently using the FREE version.. will the Paid Version (ASKBUG) – have this feature pre-installed?

Hello Manisha – the documentation linked is intended for developers to make changes using the plugin which is intended to be developer friendly. It may be best to hire a developer if you’d like make changes but aren’t comfortable or familiar with coding.

AnsPress is a free plugin, AskBug is a commercial theme meant to be used with AnsPress, it does not add additional functionality. There is not currently a paid or premium version of AnsPress.

The documentation provided is meant as a starting point for developers to extend certain features when needed.

Cheers,
Dan

Hi Dan – Based on ur suggestion, I hired a developer – he has posted a question online – regarding how to retrieve the additional field data – we understand its in Post Meta – but how do we access and retrieve this?

Please can you help us on this

Sharing the link posted by Naman
https://anspress.net/questions/question/custom-fields-made-where-is-my-data-stored-and-how-to-retrieve-it/

You are viewing 1 out of 1 answers, click here to view all answers.