The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group

Slack Signup
Newsletter Optin
Help Desk

Showing html characters in text field

Labels

This Discussion is public

Notifications

Hi There,

I have a form that is creating a search URL.  In one part I need to enclose a number in greater than and less than brackets.  I used the html code for them, and they were still omitted.

Here is my calculation: &idx-q-PropertyTypes<[84]>=[74]

I also tried: &idx-q-PropertyTypes&lt;[84]&gt;=[74]

where 84 counts the number of items checked and 74 is a comma separated list of items checked.

Thanks!

You can't show HTML in a text field. Here is a post where another user had the same issue and posted her solution: http://community.formidableforms.com/help-desk/use-html-and-field-values-in-a-rich-text-field/

Except that, changing the field type to "Rich Text" eliminates the ability to "Calculate" this field.

So, I have used the field type paragraph and this URL calculates in there:
https://www.fivestarrealty.com/idx/?idx-q-Locations=%5B88%5D%5B86%5D%5B85%5D%5B91%5D%5B92%5D%5B89%5D%5B90%5D%5B93%5D%5B94%5D%5B96%5D

This is the URL my form is submitted to (it's  a search query) and when that happens, my "&" is converted to "&amp;" and the query breaks

Per the article at: https://formidableforms.com/knowledgebase/javascript-examples/javascript-after-form-submit/

I have added this to my Success Message:
<script>window.open('[82]', '_blank');</script>
Which doesn't run.  I get a blank page with a green box on it ;(

Here's the page with the search form: https://www.fivestarrealty.com/property-search/

Discussion closed.