Custom Field issue

This topic contains 12 replies, has 3 voices, and was last updated by  Kiran 6 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #392103

    Denuwan Vithanage
    Buyer
    Post count: 35

    Hello,

    When I try to add a HTML( GD->place settings ->custom field ) and I tried to enter script in text editor. and when I press “review your listing” . It will go to the page but the content didnt update. Can any one fix this?

    #392106

    Kor
    Moderator
    Post count: 16516

    Hi Denuwan,

    Please share WP temp admin access to your site so we can take a better look. You can post the details here using the private reply option below.

    Thanks!

    #392107

    Denuwan Vithanage
    Buyer
    Post count: 35
    This reply has been marked as private.
    #392111

    Kor
    Moderator
    Post count: 16516
    This reply has been marked as private.
    #392113

    Denuwan Vithanage
    Buyer
    Post count: 35

    Please try again . Now it it works

    #392115

    Denuwan Vithanage
    Buyer
    Post count: 35

    What I tried to do is edit this page
    https://ceylon.life/add-listing/?pid=5537

    “book now ” section with following script. This system dont allow me to type the script here. please check the image.

    I did the same thing for following post few days back and it works very well.

    https://ceylon.life/places/sri-lanka-1/central-province/ethgala/hotels/dealings-freedom-rest/#geodir_book_now

    #392152

    Kor
    Moderator
    Post count: 16516

    Hi Denuwan,

    Thanks for your reply. I’d like you to know that you can’t insert a custom JS script in the textarea. Could you tell me what are you trying to achieve there with custom fields?

    Thanks!

    #392169

    Denuwan Vithanage
    Buyer
    Post count: 35

    That is not a text area. IF I am right It is custom HTML code area.
    https://ceylon.life/places/sri-lanka-1/central-province/ethgala/hotels/dealings-freedom-rest/#geodir_book_now

    In the above post I have embeded the part which shown in the attached image is achived by embeding the code to custom HTML area. But today that is not working. when I try to publish it. incomplete listing preview page is displaying.

    That is the main problem.

    #392255

    Kiran
    Moderator
    Post count: 7069

    Hi Denuwan,

    WordPress request filter does not allows script tags in request for security purpose. Because using scripts tags in POST is unsafe.
    That’s why it does not allows to submit data with script tags in front end add listing.

    Thanks,
    Kiran

    #392256

    Denuwan Vithanage
    Buyer
    Post count: 35

    Thank you very much. What about back end editing. Is there a way to give access to use scripts only admin. Because I tried this also. But it didn’t work.Or other way to use scripts like above in same detail page.

    Thank you very much

    #392261

    Kiran
    Moderator
    Post count: 7069

    There is one option “For admin use only?” in Place Settings > Custom Fields > “Book Now” custom field setting. By enabling this option you can hide that field from non admin users during add listing from front end.
    I checked it and it worked.

    Kiran

    #392271

    Denuwan Vithanage
    Buyer
    Post count: 35

    Thank you very much Back end editing is possible with your plugin. I have resolved the problem thank you very much again.

    #392272

    Kiran
    Moderator
    Post count: 7069

    Thanks for letting us know

Viewing 13 posts - 1 through 13 (of 13 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket