Discussion on Form Framework with Admin Panel - Forms Plus: PHP

swebdeveloper

swebdeveloper supports this item

Supported

This author's response time can be up to 1 business day.

142 comments found.

fsthai

fsthai Purchased

Hello,

According to this example (Actions > Add block > + Add Fields Group 2) : http://swebdeveloper.com/apps/forms-plus-php/actions.html

I’ve few questions here: I’m now understood how to construct the simple ‘add block’ from your example. Assume that I’ve more than one pre-defined fields and want them to be included into my ‘add block: Add fields group 2’ once after the page loaded, what is the code?

PS: ‘Max 3 additional fields’ has in-corrected functioning, it can add more than 3 additional fields.

Best regards!

fsthai

fsthai Purchased

Hi,

I’m developing the code in IIS, not upload to server yet.

I’d like to know how to write code for importing first two groups to clone variables (field3 &4).

I see in example that: foreach( array_slice( $form->cloneIndexList( ‘add_block_fields_group_field_3’ ), 1 ) as $index ) { ... }

I want to add my first two groups data to this array variable ‘add_block_fields_group_field_3’, but I’ve no idea to do that?

Assume that I’ve first two groups data as follows: add_block_fields_group_field_30 = ‘abc’ add_block_fields_group_field_31 = ‘def’ add_block_fields_group_field_40 = ‘ghi’ add_block_fields_group_field_41 = ‘jkl’

in my YML file: add_block_fields_group_field_3: datatype: text label: “Field 3” placeholder: “some text” cloning: true add_block_fields_group_field_4: datatype: text label: “Field 4” placeholder: “some text” cloning: true

Best regards

Hello!

I have developed a form with the functionality that you asked for in the previous comment. I sent it via email, just check out your email.

Best regards, Swebdeveloper

fsthai

fsthai Purchased

Checked w/ received, thank you for your helps

Best regards, Krit Th.

fsthai

fsthai Purchased

Hello,

Two questions about text input box:

1. I want to put ‘readonly’ in my text input, what is the code I’ve to write in YML?
attribute_list:
    name:
        datatype: text
        label: "Name" 
        placeholder: "Name" 
        autocomplete: "off" 
the output should be as follow w/’readonly’ element:
<input class="form-control" placeholder="Name" required autocomplete="off" type="text" id="name" name="name" aria-required="true" readonly>

2. If I want above input (1.) to be focused once the form is loaded, What is the YML code? By default, I always select the first default form element by $(selector).focus() via javascript.

Thank you with Best Regards, Krit Th.

Hello!

I have just developed a patch that adds support of it.

You should use the following options readonly: true and autofocus: true. So, the config for your field should look like this:
attribute_list:
    name:
        datatype: text
        label: "Name" 
        placeholder: "Name" 
        autocomplete: "off" 
        readonly: true
        autofocus: true

It solves both your questions. But, first contact me via email, I will send you the patch.

Best regards, Swebdeveloper

by
by
by
by
by
by