forked from chengz/schema-form-strapselect
-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Description
Hello,
Now I am able to get the drop down values from mysql db via php using url http post method. Only issue is how to pass dynamic parameter i.e. passing a scope variable's value to the middleware program in this case to php.
I have hard coded the user id within the form declaration using "parameter" but I would like to use a scope variable (without $scope in the below syntax).
For example:
"parameter": { "id" : "CURRENT_USER_ID"} // Where CURRENT_USER_ID is a scope variable.
{
"key": "org_id",
"type": "strapselectdynamic",
"options": {
"http_post": {
"url" : "app/server/profiledata/my_organisations.php",
"parameter": { "id" : "416d0817-43fb-11e4-9e1f-f04da275143b"}
}
},
"placeholder": "Select Organisation Name",
"htmlClass":"col-lg-4 col-md-4"
}
Metadata
Metadata
Assignees
Labels
No labels