K
K
Karen Mnatsakanyan2017-06-10 13:10:11
Python
Karen Mnatsakanyan, 2017-06-10 13:10:11

Creating a form in Custom Field Suite?

Hello everyone, I'm trying to create a frontend form for adding records to the post type company, but nothing happens, there is a detailed description of the form here. Help me to understand.
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
runcode, 2018-10-17
@ivanchin_ivan

figured it out myself, there the token was the current session, it did not need to be decrypted

A
asd111, 2018-10-16
@asd111

Google jwt

K
Karen Mnatsakanyan, 2017-06-11
@karjan

Solved the problem
myself

<?php echo CFS()->form( 
                    array(
                        'post_id' => false,
                        'post_type' => 'company',
                        'post_title' => 'The Title',
                        'post_content' => false,
                        'field_groups' =>  array('152'),
                        'confirmation_url' => '/successful', // redirect URL
                        'submit_label' => 'Submit',
                    ));
                ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question