Hello,
You can pass parameters if you are using the external embed code, not the shortcode
According to your reply, this is my sample code.
ClassController extends BaseController:
public function edit(BookRequest $request, Book $book)
{
$data = array(
‘foo1’ => ‘bar1’,
‘foo2’ => ‘bar2’,
:
:
);
return view(‘BookFolder::book.create_edit’)->with($data));
}
create_edit.blade.php:
@section(‘content’)
@component(‘components.box’)
@endcomponent
@endsection
Before passing data to create_edit.blade.php, I need to set $data array.
Can $data pass to external embed code?
If no, how do I modify source?
Oh, external embed seems not to show.
@component(‘components.box’)
@endcomponent
is source.
String “https://domain” intentionally omitted.
I’m sorry. external embed code can’t show.
My sample code of create_edit.blade.php, inside of
@component(‘components.box’)
@endcomponent
has external embed code.
It will be something like this
<div data-embed-src="http://formbuilder.laraship.com/forms/v1oz1Yz27j/embed?**data1=val1&data2=val2**"><script type="text/javascript" src="http://formbuilder.laraship.com/assets/corals/plugins/formbuilder/js/embed.js">
where data1 and data2 are field names
Thank you for replying.
I’ll try to code this way.
You reply to me “embed?**data1=val1&data2=val2**”
Is “**” string required for query parameter?
“**” is to emphasis about query string.
I have a question.
When item of embed form is checkbox, how do I pass values?
And checked values of checkbox is multiple, how do I pass?
checkbox and multiple checkbox not handled yet
Ok.
When will your company develop about checkbox and multiple checkbox?
please stay tuned or futured updates
OK.
This time, I’ll develop by myself.
Thank you for replying
When the parameter value passed to input type of radio of embed form, all values of radio are overridden by passed value.
To make sure, When I don’t pass parameter value to input type of radio of embed form, all values of radio are fine(not overridden).
I wonder this is bug…?
As previously mentioned this feature is supported for Text / Text Area / Select fields
input type of radio isn’t supported now.
OK. Thank you.
Please close this topic.
Please login or Register to submit your answer
can you give us an example on what values you want to pass
As a result, the values whici I want to pass into embed form are various.
If field type of form item and column of table are ‘string’ type, it can pass as it is.
If password, value of password must pass as vacant.
If column of table is ‘date’ type, but form item has two ‘string’ type.
Because year and month have to input directly in text field.
So before passing, the value of ‘date’ type column have to divide into year and month values.
You can pass parameters if you are using the external embed code, not the shortcode
I see.
Than you for replying.