I am trying to: use a front end form in a loop view
Link to a page where the issue can be seen: it's private, i'll provide credentials.
I expected to see: the calendar popup datepicker
Instead, I got: just a blank field that won't accept text either
Hello James, Minesh asked me to work with you on this ticket because of the difference of timezones. I am on the GMT+1 timezone.
Because this ticket was already closed, the credentials to your website were removed. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **
Please provide a URL when we can see this issue.
Thought this might be helpful.
I am continuing to work on the project, and part of it calls for another form in a similar place with different conditions for display. That form also does not render the date field correctly.
I can live without the datepickers for now, so long as they end up fixed eventually. I REALLY need the relationship fields to autopopulate with the appropriate items.
Any luck figuring out where I am screwing this up at? Anything else I can provide or do to help get it working? Please and thank you!
I am sorry, but the provided credentials are not working for me. Can you double-check from your side and update the credentials or add them to your next reply.
I visited this requisition page but I don't see any field, maybe because I am not logged in yet. I still would like to ask, can you tell me where would you expect it to be with a screenshot?
hidden link
You said:
the items-to-orders relationship field is also not populating the default value I am giving it
I REALLY need the relationship fields to autopopulate with the appropriate items.
Can you also elaborate more on this? What have you setup? What would you expect? Any direct URLs to the content templates, views, or forms will be helpful. Any additional screenshots will be helpful too.
hidden link
hidden link
When you are logged in, these two requisitions have the status: Approved - Ordering. When in this state, there are fields that show below each requested item.
Expected arrival by (date)
and
Items to Orders (relationship)
the date field should allow us to pick a date from the calendar popup, but it does not.
The relationship field should populate with the item' ID, but it does not.
On 1412 the item requested is 1 Gas Card and you should see the fields there.
On 1448 the item requested is 1 XL Brown Pants, the form shows below the item.
They are displayed conditionally based on the fields "status" and "sub-status" on the Requisition post type, and should reference the current "Item" post in the loop through a one-to-one relationship.
Hopefully this gives you enough detail.
Here's a link to the form rendered in a page by iteself. It renders normally there.
hidden link
So, it's SOMETHING with how I am calling it or where I am calling it, which is inside the loop item content template for the view "Omni Items by Type"
The content template is named "Loop item in Omni Items by Type"
I have some HTML rows and some toolset conditionals and fields displaying in there, and the form which is "New Item Order (ID: 1414)"
So, now I am not able to access the dashboard...
The toolset access login page comes up, and it accepts my credentials, but if I try to access any part of the dashboard it redirects me back to the toolset login form...
Please advise.
Here's a screenshot of the fields in question on Requisition 1448
I was able to get in to the dashboard again. Any luck finding my mistake, or is this a bug?
I need to make the main site live, so I have made a staging site. The same credentials form the last private reply should work. The new URL is hidden link
Were you able to get into the staging site?
My apologies for the late reply, but I do not work on Wednesdays and Thursdays.
I was able to login to the staging site, but I could not find out the cause of the issue. I'll need to take a copy of the website for further debugging locally. Would that be ok with you?
In the meantime, I noticed some issues that may need to be fixed, or maybe I am missing something on them.
- The view "Omni Items by Type" has a query filter on the "Item Type" that should be passed using a shortcode argument, but the view is used inside the content template "Template for Requisitions" without passing the shortcode argument to it.
- The view "Omni Items by Type" is using the template of the loop by passing an argument type, which is not something supported by content templates:
[wpv-post-body view_template="loop-item-in-omni-items-by-type" type="[wpv-attribute name='type']"]
- The form has an item argument, which is also not supported:
[cred_form form="new-item-order" item="[wpv-post-id]"]
https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/#cred_form
- The form tries to set a default value for the relationship field to orders, but, IMO it should not be passed that way. hidden link
You may want to fix this! I am looking forward to your reply about letting me take a copy of your website.