• Resolved allansjackson

    (@allansjackson)


    Hi everyone
    I’m a relative newcomer to PODS and I’m running into issues that I can’t seem to solve with documentation or Google. The thing is I have a front-end form to add records but can’t edit existing ones. The Pods shortcode generator says it’s a submission and editing form. The shortcode I’m using is: [pods-form name=”event” label=”Submit” fields=”post_title,event_location,event_date,event_time,event_description,booking_url”]

    I’d also love the description field to have less lines in it, if that’s possible.

    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    To edit an existing post, you pass the id of the post you want to edit or the slug in the shortcode itself, ie [pods-form id="12" name="event", etc.

    If you’re using a WYSIWYG or Text box, it’s going to give you the same size box as available on the back-end (our Forms pretty much duplicates back-end admin to front-end). We’re not a forms engine so we don’t really provide an interface for modifying those sizes easily.

    You can adjust the size however, using CSS. If you want all textarea fields from Pods to be of ‘less height’, you can add the following to your Custom CSS:

    
    .pods-form .pods-field-input-textarea {
        min-height: 100px; /* or whatever height you want this to be */
    }
    

    Or you could specifically target specific fields, though you’ll need to find it within your front-end form, typically they are of the style:

    textarea#pods-form-ui-pods-field-{field-name}

    Thread Starter allansjackson

    (@allansjackson)

    Hi Jim
    Thanks very much for the answer. I get the bit about about the text area height but I’m still lost when it comes to a front-end form to edit entries. I’m needing a page where users can add posts and edit or delete them without having to edit the actual shortcode each time which they couldn’t do.

    Perhaps I’m misunderstanding you but that seems to be what you’re saying they’ll have to do. Is an all-in-one form possible or even two forms on a page? One for adding new posts and for scrolling through and editing/deleting existing ones.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Front end form for editing’ is closed to new replies.