How can I auto-populate a form with a native field from another record in NetSuite? - customization

I am pretty new to NetSuite, and I am having an issue with a custom field. There is a native field on our Project form called project type (id: jobtype) and we are using it as a drop-down list to classify the project as Capital or Non-Capital, shown in the link. Project Field
I want to copy the field and have it on the Vendor bill form and have the field auto-populate with whatever the value is on the Project form. Basically, I just want the data to be duplicated on this other form. I tried creating a custom field and sourcing the Project record and I can see the field on the Vendor bill, but the value is blank and doesn't populate as either Capital or Non-Capital: Vendor Bill field
I cannot figure out why it isn't working, whether it's because it's a native field or I am sourcing something wrong. Any help would be appreciated, thank you!

Related

How to display custom field of component item of kit item on picking ticket - Netsuite

I have invoiced a Kit Item that contains a few component items. I am able to print/display component item name and its description, but unable to display the country of the manufacturer and a custom field of the component item as shown below in the screenshot,
Note: this appears when print ic clicked on the invoice.
every component has a different code and may have a different country
manufacturing.
#Mangrio unfortunately this is not standard functionality, which doesn't make sense.
You can use a suitelet to render the PDF template from the appropriate form, utilising a Saved Search to inject more data into the PDF, which tends to be slow, and is definitely extra time to build.
Other than that, I don't believe there is a solution.

Netsuite field doesn't show on kit record

There is a field called 'IsDropShipItem' that we're trying to show on an Assembly/Group Item Form. When customizing the form, we can see it under Fields -> Inventory and it is marked to Show, but it doesn't show up on the record. It shows fine on the Inventory Item forms.
The issue here is that Kit items in NetSuite cannot be drop shipped. They are technically not an inventoried item, they are only a collection of their components, and as such, they cannot be purchased from a vendor. Group items will have the same issue. I recommend recreating your Kit item as an Assembly item, then you will be able to see and check the isDropShipItem checkbox.

Why doesn't Web Forms for Marketers correctly populate the selected DropList value in my custom save action?

Inside my custom save action, I iterate through the form fields (the AdaptedControlResult objects). Any form field which is a DropList (from any source -- manually entered values, or an item lookup) is returning a string value of System.Collections.Generic.List`1[System.String]
Now, it's important to know, it's not returning an actual List. It's returning a literal string with that value.
So, this call:
fields.GetEntryByName("MyFieldName").Value
Is returning the string: System.Collections.Generic.List`1[System.String]. Not the value of the dropdown. A string saying that's it's a List<string>.
I have confirmed the HTML of the form is rendering correctly. I have manually checked the inbound HttpContext.Current.Request.Form values as well...
HttpContext.Current.Request.Form["BGWnjkQqrE6w6sr31IgzrQ.Sections[5].Fields[0].Value"]
That is the correctly-selected value of the drop down (a Sitecore ID).
So, the data is getting output to the form correctly, and the inbound Request.Form data is also correct. Somewhere, Sitecore is deciding not to populate the selected value into the AdaptedControlResult object.
What's additionally odd is that for DropList field types, the selected value does appear in the Parameters property (inexplicably). I would just detect this and use it, but it's not consistent -- for instance, for textbox field types, the word "multiline" appears there.
All other field types work fine -- I have several text entry fields, and some radio button lists. It's just DropList fields.
What is the trick to getting this?
This is a known bug in Sitecore when using the WFFM module in MVC. You can find more details in this Knowledge Base Article - Incorrect data is saved for list fields in WFFM MVC.
The fix is listed on the kb article and depends on the exact version of Sitecore you are using. Sorry to provided a link only answer but there are multiple steps reqiured for the fix and the download for the fix is attached in the article.

Sitecore Web Forms for Marketers - Complex custom field

The client wants to be able to display, within a WFFM form, a list of Sitecore items (each item containing an image & some HTML text), each item next to a checkbox to allow the end user to pick one or more of these items.
Within the form designer, for this particular field, we would like to have an item selector which can be used by the content editor to pick and choose which items to display in the list.
Is this something feasible in WFFM? Are there examples of complex custom form fields that I could take a look at? Thanks!
I just found out that what I asked can be easily accomplished with the ChechboxList field type already provided by WFFM and some CSS styling to handle the content of each item.
Thanks and sorry for the post.

How customize fields in the Django admin interface

I have a model in my Django project with a member which is a char field. Basically data in this field will be entered as comma-separated values.
Without a long-winded explanation of what the overall goal of this is, basically rather than having the admin interface use a simple text field, I'd rather have have some custom HTML for the form so I can just use checkboxes and assemble the values of the checked boxes into a CSV string myself once the form is submitted.
Most of the django customization I was able to find on Google didn't answer my particular problem.
If I understand your question correctly I think you want to search for writing custom widgets. Perhaps start here: http://docs.djangoproject.com/en/dev/topics/forms/